Business Flowchart:
Development steps:?
- Get user-entered account number and password?
- Use if logical statements for business logic judgments?
- Give the user the appropriate hints based on the results of the judgment
1 //Register_activity.java2 3 Private BooleanCheckform () {4 if( This. Txtregaccount.gettext (). toString () = =NULL|| This. Txtregaccount.gettext (). toString (). Length () = = 0) {5Toast.maketext (Getapplicationcontext (), "Warning: Registered account cannot be empty", Toast.length_long). Show ();6 return false;7 }8 if( This. Txtregpassword.gettext (). toString () = =NULL|| This. Txtregpassword.gettext (). toString (). Length () = = 0) {9Toast.maketext (Getapplicationcontext (), "Warning: registration password cannot be empty", Toast.length_long). Show ();Ten return false; One } A if(! ( This. Txtregpassword.gettext (). toString ()). Equals (( This. Txtreregpassword.gettext (). toString ()))) { -Toast.maketext (Getapplicationcontext (), "Warning: two times password Inconsistent", Toast.length_long). Show (); - return false; the } - return true; -}
Run:
Design and implementation of registration Interface (ii) Realization of registered business logic