»Ë»Ñ Æ÷·³
°³¹ßÀÚÆ÷·³ ÀÔ´Ï´Ù.
  • ºÏ¸¶Å© ¾ÆÀÌÄÜ

¾Èµå·ÎÀ̵å ÅؽºÆ® ÀԷ¹ÞÀ» ¶§ ¿¹¿Üó¸®8

EditText et_ability1=(EditText)findViewById(R.id.edit_ability1);
String str_ability1=et_ability1.getText().toString();

EditText et_value1=(EditText)findViewById(R.id.edit_value1);
String str_value1=et_value1.getText().toString();  

it3.putExtra("it3_ability1", str_ability1);
it3.putExtra("it3_value1", str_value1);

startActivity(it3);
finish();

ÇöÀç ÀÌ·±½ÄÀ¸·Î ÅؽºÆ®¸¦¹Þ½À´Ï´Ù. ºó °ø¹éÀ¸·Î ÀÔ·ÂÇÏ¸é °­Á¦Á¾·á°¡ µÇ´Âµ¥ ±×°É ¸·°í Å佺Ʈ¸Þ½ÃÁö·Î °ªÀ» ÀÔ·ÂÇ϶ó°í ¶ç¿ï·Á°í ÇÕ´Ï´Ù.

try catch ¹®À» ¾²¶ó°í Çϴµ¥ catchÀÇ º¯¼ö¸¦¹»·Î Áà¾ß Çϳª¿ä?

EditText et_ability1=(EditText)findViewById(R.id.edit_ability1);
try{
String str_ability1=et_ability1.getText().toString();

}catch(??){
Å佺Ʈ¸Þ½ÃÁö ±¸¹®
}
ÀÌ·±½ÄÀ¸·Î ÇØÁÖ·Á°í ÇÕ´Ï´Ù. ijġºÎºÐ¿¡ ¹» ³Ö¾îÁà¾ß Çϳª¿ä?

±×¸®°í ÀÌ°Å´ë½Å if ¹®À¸·Î ½áµµ µÇÁö ¾Ê³ª¿ä?

EditText et_ability1=(EditText)findViewById(R.id.edit_ability1);
if(str_ability1 != null)
{
String str_ability1=et_ability1.getText().toString();
}
else{
Å佺Ʈ¸Þ½ÃÁö ±¸¹®
}
ÀÌ·±½ÄÀ¸·Î¿ä

0
ÃßõÇϱ⠴ٸ¥ÀÇ°ß 0
|
°øÀ¯¹öÆ°

´Ù¸¥ÀÇ°ß 0 Ãßõ 0 ½´¾ß

´Ù¸¥ÀÇ°ß 0 Ãßõ 0 ½´¾ß

´Ù¸¥ÀÇ°ß 0 Ãßõ 0 ½´¾ß

´Ù¸¥ÀÇ°ß 0 Ãßõ 0 ¼¼¸ð_

´Ù¸¥ÀÇ°ß 0 Ãßõ 0 0Ãʺ¸0

´Ù¸¥ÀÇ°ß 0 Ãßõ 0 ù¦ØÐ

´Ù¸¥ÀÇ°ß 0 Ãßõ 0 ¸Á°£ÀÌ

´Ù¸¥ÀÇ°ß 0 Ãßõ 0 ù¦ØÐ
  • ¾Ë¸² ¿å¼³, »óó ÁÙ ¼ö ÀÖ´Â ¾ÇÇÃÀº »ï°¡ÁÖ¼¼¿ä.
©¹æ »çÁø  
¡â ÀÌÀü±Û¡ä ´ÙÀ½±Û ¸ñ·Ïº¸±â