ထႅင်ႈလၢႆႈၼိုင်ႈ
java code
public class Lesson_11 { public static void main(String[]args){ String s = "Android"; if(s.equals("Android")){ System.out.print("Andorid OK"); }else if (s.equals("java")){ System.out.println("Java OK"); }else if(s.equals("javaSE")){ System.out.println("javaSE OK"); }else { System.out.println("Error"); } } } // if else if//==
ပိူင်တႅၵ်ႈမၼ်းထႅင်ႈ
public class Lesson_12 {
public static void main(String[]args){
String s ="java"; if(s.equals("android")||s.equals("java")||s.equals("javaSE")){
System.out.print("Success"); }else {
System.out.print("Error"); }
}
}
//
No comments:
Post a Comment