ၸၢင်ႈႁဵတ်းလႆႈလၢႆလၢႆမဵဝ်း လူဝ်ႇၵႆႉၵႆႉၸၢမ်းတူၺ်း ဝူၼ်ႉတူၺ်း
Java code example
ublic class lesson_15 { public static void main(String []args){ int i = 1; if(i <=5 && i>=0){ System.out.print("This is mhy number"); }else { System.out.print("Error"); } } }
java code example (တူၺ်းလီလီ ဢမ်ႇယၢပ်ႇသင်)
public class Lesson_16 { public static void main(String []args){ String s = "jaotainum"; if(!s.equals("jaotai")){ System.out.println("OK"); }else { System.out.println("Fail"); } int i = 1; if(i!=4){ System.out.println("This is my number"); }else { System.out.print("Error"); } } }
----------------------------------------------------------------------------------------
package Pack1; public class lessonjava { public static void main(String[]args){ System.out.println("Hello World"); System.out.print("Hello JaoTaiNum\n"); System.out.println("www.tainum.com"); System.out.print("မႂ်ႇသုင်ၶႃႈ\nဝႅပ်းသၢႆႉၸဝ်ႈတႆးၼုမ်ႇ\nwww.tainum.com\nႁူမ်ၸူမ်းႁပ်ႉတွၼ်ႈယူႇၶႃႈ"); System.out.println(33+88); System.out.println(342-2221); System.out.println(23*3); System.out.println(444/5); char c = 'A'; System.out.println(c); String s = "Hello Mai Soon kha Jao Tai Num"; System.out.println(s);//char int short int long float double boolen char int short int byte short long int long boolen double int i1 = 20; int i2 = 50; System.out.println(i1+i2); byte b = 127; System.out.println(Byte.MIN_VALUE); System.out.println(Byte.MAX_VALUE); System.out.println(Byte.SIZE); short sh =12346; //လႆႈၼိုင်ႈမိုၼ်ႇ System.out.println(Short.MIN_VALUE); System.out.println(Short.MAX_VALUE); System.out.println(Short.SIZE); System.out.println(Short.BYTES); int i = 1234567890; System.out.println(Integer.MIN_VALUE); System.out.println(Integer.MAX_VALUE); System.out.println(Integer.SIZE); System.out.println(Integer.BYTES); long l = 123458989898967890L; System.out.println(Long.MIN_VALUE); System.out.println(Long.MAX_VALUE); System.out.println(Long.SIZE); System.out.println(Long.BYTES); //လူဝ်ႇပႃး L ၽၢႆႇလင်မၼ်း float f = 1.2334343434343434343434343434343343434343f; System.out.println(Float.MIN_VALUE); System.out.println(Float.MAX_VALUE); System.out.println(Float.SIZE); System.out.println(Float.BYTES); // လူဝ်ႇပႃး F ၽၢႆႇလင် double d = 121323123123123123123123123123d; System.out.println(Double.MIN_VALUE); System.out.println(Double.MAX_VALUE); System.out.println(Double.SIZE); System.out.println(Double.BYTES); boolean bo = true;//false String s3 = null; System.out.println(s3); //This is java basic lesson } }
No comments:
Post a Comment