လၢႆးၸႂ်ႉ if / else ထႅင်ႈမဵဝ်းၼိုင်ႈ
java code example
public class lesson_13 { public static void main(String[]args){ String user = "saikhur"; String pass = "1234"; if(user.equals("jaotainum") && pass.equals("528")|| user.equals("saikhur") && pass.equals("1234")){ System.out.println("log in success"); }else { System.out.print("Log in fail"); } } }
Java code example 2
public class lesson_14 { public static void main(String[]args){ int i = 5; if(i <=6){ System.out.print("This is Number"); }else { System.out.print("Fail"); } } }
No comments:
Post a Comment