Buggy code:
public class EditExpenseActivity extends Activity { private static final String FILENAME = "save.sav" ; private ClaimListModel Claims ; private ExpenseModel currentExpense ; private int claimID ; private String claimIDstr ; private int expenseID ; private String expenseIDstr ; final Context context = this ; private String newExpenseName ; private String category ; private String description ; private String currencyUnit ; private int dateDay ; private int dateMonth ; private int dateYear ; private int amountSpend ; private EditText editTextEditExpenseName ; private EditText editTextEditExpenseDateDay ; private EditText editTextEditExpenseDateMonth ; private EditText editTextEditExpenseDateYear ; private EditText editTextEditExpenseCategory ; private EditText editTextEditExpenseAmoutnSpend ; private EditText editTextEditExpenseUnitOfCurrency ; private EditText editTextEditExpenseDescription ; private Button buttonEditExpenseCancle ; private Button buttonEditExpenseDone ; @ Override protected void onCreate ( Bundle savedInstanceState ) { } @ Override protected void onStart ( ) { super . onStart ( ) ; Claims = this . loadFromFile ( ) ; currentExpense = Claims . getClaimList ( ) . get ( claimID ) . getExpenseList ( ) . get ( expenseID ) ; editTextEditExpenseName . setText ( currentExpense . getName ( ) ) ; editTextEditExpenseCategory . setText ( currentExpense . getCategory ( ) ) ; editTextEditExpenseDescription . setText ( currentExpense . getTextualDescription ( ) ) ; editTextEditExpenseAmoutnSpend . setText ( String . valueOf ( currentExpense . getAmountSpent ( ) ) ) ; editTextEditExpenseUnitOfCurrency . setText ( currentExpense . getUnitOfCurrency ( ) ) ; editTextEditExpenseDateDay . setText ( String . valueOf ( currentExpense . getDate ( ) . get ( Calendar . DATE ) ) ) ; editTextEditExpenseDateMonth . setText ( String . valueOf ( ( ( currentExpense . getDate ( ) . get ( Calendar . MONTH ) ) + 1 ) ) ) ; editTextEditExpenseDateYear . setText ( String . valueOf ( currentExpense . getDate ( ) . get ( Calendar . YEAR ) ) ) ; buttonEditExpenseDone . setOnClickListener ( new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { String t1 = editTextEditExpenseDateDay . getText ( ) . toString ( ) ; String t2 = editTextEditExpenseDateMonth . getText ( ) . toString ( ) ; String t3 = editTextEditExpenseDateYear . getText ( ) . toString ( ) ; String t4 = editTextEditExpenseAmoutnSpend . getText ( ) . toString ( ) ; if ( ( ( ( t1 . equalsIgnoreCase ( "" ) ) || ( t2 . equalsIgnoreCase ( "" ) ) ) || ( t3 . equalsIgnoreCase ( "" ) ) ) || ( t4 . equalsIgnoreCase ( "" ) ) ) { <START_BUG> Toast . makeText ( getApplicationContext ( ) , "Emput<seq2seq4repair_space>input" , LENGTH_LONG ) . show ( ) ; <END_BUG> } else { Intent intentDone = new Intent ( ) ; newExpenseName = editTextEditExpenseName . getText ( ) . toString ( ) ; category = editTextEditExpenseCategory . getText ( ) . toString ( ) ; description = editTextEditExpenseDescription . getText ( ) . toString ( ) ; currencyUnit = editTextEditExpenseUnitOfCurrency . getText ( ) . toString ( ) ; dateDay = Integer . parseInt ( editTextEditExpenseDateDay . getText ( ) . toString ( ) ) ; dateMonth = Integer . parseInt ( editTextEditExpenseDateMonth . getText ( ) . toString ( ) ) ; dateYear = Integer . parseInt ( editTextEditExpenseDateYear . getText ( ) . toString ( ) ) ; amountSpend = Integer . parseInt ( editTextEditExpenseAmoutnSpend . getText ( ) . toString ( ) ) ; currentExpense . setName ( newExpenseName ) ; currentExpense . setTextualDescription ( description ) ; Calendar date = Calendar . getInstance ( ) ; date . set ( dateYear , ( ( dateMonth ) - 1 ) , dateDay ) ; currentExpense . setDate ( date ) ; currentExpense . setCategory ( category ) ; currentExpense . setUnitOfCurrency ( currencyUnit ) ; currentExpense . setAmountSpent ( amountSpend ) ; intentDone . putExtra ( "claimID" , claimIDstr ) ; saveInFile ( ) ; intentDone . setClass ( EditExpenseActivity . this , ClaimActivity . class ) ; EditExpenseActivity . this . startActivity ( intentDone ) ; } } } ) ; buttonEditExpenseCancle . setOnClickListener ( new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { AlertDialog . Builder ADB = new AlertDialog . Builder ( context ) ; ADB . setTitle ( "Exit" ) ; ADB . setMessage ( "Are<seq2seq4repair_space>you<seq2seq4repair_space>sure<seq2seq4repair_space>you<seq2seq4repair_space>want<seq2seq4repair_space>to<seq2seq4repair_space>exit<seq2seq4repair_space>without<seq2seq4repair_space>saving?" ) ; ADB . setNegativeButton ( no , null ) ; ADB . setPositiveButton ( yes , new OnClickListener ( ) { public void onClick ( DialogInterface arg0 , int arg1 ) { Intent intentBackPressed = new Intent ( ) ; intentBackPressed . putExtra ( "claimID" , claimIDstr ) ; intentBackPressed . setClass ( EditExpenseActivity . this , ClaimActivity . class ) ; EditExpenseActivity . this . startActivity ( intentBackPressed ) ; } } ) . create ( ) . show ( ) ; } } ) ; } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } private ClaimListModel loadFromFile ( ) { } private void saveInFile ( ) { } @ Override public void onBackPressed ( ) { } }

Fix:
Toast . makeText ( getApplicationContext ( ) , "Empty<seq2seq4repair_space>input" , LENGTH_LONG ) . show ( ) ;