Wednesday, July 11, 2018
Wednesday, June 27, 2018
လွၵ်းလၢႆးႁဵတ်း(Splash Screen) တီႈၼႂ်း Android Studio
ၸႂ်ႉတူၺ်းၼင်ႇတႂ်ႈၼႆႉ
code
package com.example.jaotainum.welcomescreen; import android.content.Intent; import android.os.Handler; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; public class Main extends AppCompatActivity { private int SPLASH_TIME_OUT = 4000; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); new Handler().postDelayed(new Runnable() { @Override public void run() { Intent home = new Intent(Main.this,HomeActivity.class); startActivity(home); finish();; } },SPLASH_TIME_OUT); } }
Thursday, June 14, 2018
လဵပ်ႈႁဵၼ်း Android Studio 001 ( Toast Message + Click Button)
လဵပ်ႈႁဵၼ်း Android Studio 001 ( Toast Message + Click Button)
main.xml code
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".Main"> <Button android:id="@+id/btn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:text="Click" /> </LinearLayout>
Main java code
package com.example.jaotainum.toast; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.Toast; public class Main extends AppCompatActivity { Button test; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); test= (Button) findViewById(R.id.btn); test.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Toast.makeText(Main.this, "Hello", Toast.LENGTH_SHORT).show(); } }); } public void dosomthing(View v) { } }
တွၼ်ႈၽိုၵ်းတႅမ်ႈ Java 19 (Scanner+do while+if, else if ၸႂ်ႉၵိုၵ်းၵၼ်)
တွၼ်ႈၽိုၵ်းတႅမ်ႈ Java 19 (Scanner+do while+if, else if ၸႂ်ႉၵိုၵ်းၵၼ်)
java code example
public class lesson11 { public static void main(String []args){ Scanner sc = new Scanner(System.in); String s = sc.next(); switch (s) { case "*133#": do { System.out.println("1. data pack"); System.out.println("2. Facebook Pack"); System.out.println("3. Other Pack"); s = sc.next(); if (s.equals("1")) { System.out.println("1. 450 MB+ 700"); System.out.println("2. 2.GB + 1500 "); System.out.println("3. 88"); s = sc.next(); if (s.equals("2")||s.equals("2")) { System.out.println("Success"); } } } while (s.equals("88")); break; default: System.out.println("Number Code Error"); } } }
တွၼ်ႈၽိုၵ်းတႅမ်ႈ Java 18 ( Scanner 02 and if, else if / မိူၼ်လၢႆးသိုဝ်ႉ Internet Pack MPT ၼၼ်ႉ)
လၢႆးၸႂ်ႉတိုဝ်း Scanner 02 မိူၼ်လၢႆးသိုဝ်ႉၼႅတ်ႉ MPT
java code example
import java.util.Scanner; public class lesson10 { public static void main(String []args){ Scanner sc = new Scanner(System.in); String code = sc.next(); switch (code){ case "*133#": System.out.println("1. Data Pack"); System.out.println("2. Facebook Pack"); System.out.println("3. Other Pack"); String numberpacck = sc.next(); if (numberpacck.equals("1")){ System.out.println("1. 400 MB+700 (Pack)"); System.out.println("2. 900 MB + Data Pack"); System.out.println("3. 1 GB + Data Pack"); }else if (numberpacck.equals("2")){ System.out.println("200 MB + 499 ks (Facebook Pack)"); System.out.println("700 MB + 999 ks (Facebook Pack"); System.out.println("1 GB + 1500 ks (Facebook Pack"); }else if (numberpacck.equals("3")){ System.out.println("Voice Call Pack"); System.out.println("Other Call"); System.out.println("other call"); } break; default:{ System.out.println("Number code Error"); } } } }
တွၼ်ႈၽိုၵ်းတႅမ်ႈ Java 17 (Scanner 01)
Scanner 01
java code example
import java.util.Scanner; public class lesson08 { public static void main (String []args){ Scanner sc = new Scanner(System.in); String st = sc.nextLine(); System.out.println("Outpot; "+st); } }
တွၼ်ႈၽိုၵ်းတႅမ်ႈ Java 16 ( ၸႅတ်ႈ Char)
Char java
java code example
public class lesson07 { public static void main(String[]args){ char c1 ='A'; char c2 ='B'; System.out.println((int)c1);System.out.print((int)c2); } //for ဢမ်ႇၸႂ်ႉလႆႈ Strngs. // While ၸႂ်ႉလႆႈၵူႈဢၼ် (ႁဵတ်းသၢင်ႈ ၸႂ်ႉၵိုတ်းၸင်ႇၵိုတ်း) // Do While ႁဵတ်းၵၢၼ်ၵူႈဢၼ် ၽိတ်းၵေႃႈႁဵတ်း ၵူၺ်းၵႃႈ ပွၵ်ႈလဵဝ်ၵူၺ်း // Char ၸႂ်ႉလႆႈတီႈတူဝ်လိၵ်ႈဢၼ်လဵဝ်ၵူၺ်း }
ၽိုၵ်းတႅမ်ႈ Java 15 (For loop ၵိုၵ်းတူဝ်ၼပ်ႉ )
for loop 2
java code example
public class lesson04 { public static void main(String []args){ for(int i = 1; i<=20;i++){ System.out.println(i + "Hello"); } } }
Wednesday, June 13, 2018
တွၼ်ႈၽိုၵ်းတႅမ်ႈ Java 14 ( လၢႆးၸႂ်ႉတိုဝ်း do while loop)
တွၼ်ႈၽိုၵ်းတႅမ်ႈ Java 14 ( လၢႆးၸႂ်ႉတိုဝ်း do while loop)
java code example
java code example
public class lesson03 {public static void main(String []args){int i = 1;do{System.out.println("hello wordl");i++;}while (i<=5);}}
တွၼ်ႈၽိုၵ်းတႅမ်ႈ Java 13 ( လၢႆးၸႂ်ႉတိုဝ်း While loop)
တွၼ်ႈၽိုၵ်းတႅမ်ႈ Java 13 ( လၢႆးၸႂ်ႉတိုဝ်း While loop)
java code example
public class lesson02 { public static void main(String []args){ int i =1; while(i<=10){ System.out.println("Hello"); i+=2; } } }
တွၼ်ႈၽိုၵ်းတႅမ်ႈ Java 12 ( လၢႆးၸႂ်ႉ For loop)
ၵႆႉၸႂ်ႉဝႆႉယူႇၼင်ႇၵဝ်ႇ လူဝ်ႇႁူႉ ဝႆႉ
Java code example 1
public class lesson01 { public static void main(String []args){ for(int i = 0;i<6;i++){ System.out.println("Helo"); } } } // For loop / while loop / do while loop// For loop// For(Start; end; inc){// body // i=1;// i=i+2;// i++// }
java code example 2
တွၼ်ႈၽိုၵ်းတႅမ်ႈ Java 12 (if . else if- ပိူင်တႅၵ်ႈထႅင်ႈလၢႆးၼိုင်ႈ)
ၸၢင်ႈႁဵတ်းလႆႈလၢႆလၢႆမဵဝ်း လူဝ်ႇၵႆႉၵႆႉၸၢမ်းတူၺ်း ဝူၼ်ႉတူၺ်း
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 } }
တွၼ်ႈၽိုၵ်းတႅမ်ႈ Java 11 (if , else / Login User name and password)
လၢႆးၸႂ်ႉ 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"); } } }
တွၼ်ႈၽိုၵ်းတႅမ်ႈ Java 10 (if . else if)
ထႅင်ႈလၢႆႈၼိုင်ႈ
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"); }
}
}
//
Tuesday, June 12, 2018
တွၼ်ႈၽိုၵ်းတႅမ်ႈ Java Lesson 09 (if , else statement)
if , else ၼႆႉ ပေႃးမၼ်းမႅၼ်ႈ(မၢၼ်ႇ)ၵေႃႈ ဢွၵ်ႇ၊ သင်ဢမ်ႇမႅၼ်ႈ ၼႆ ၵေႃႈဢွၵ်ႇၼႆယဝ်ႉ။
Java Code Example
public class lesson_9 { public static void main(String[]args){ String s = "java"; if(s.equals("java")) { System.out.print("Ok"); }else{ System.out.print("Fail"); } } }
တွၼ်ႈၽိုၵ်းတႅမ်ႈ Java Lesson 08 (if statement)
if ၼႆႉ ပေႃးမၼ်းမႅၼ်ႈ(မၢၼ်ႇ)ၵွၼ်ႇ ၸင်ႇတေဢွၵ်ႇပၼ်ၶေႃႈတွပ်ႇ
Java code Example
public class lesson_8 { public static void main(String[]args){ String s ="java"; if(s.equals("java")){ System.out.print("Ok"); } } } /*if statementif(con){ */
တွၼ်ႈၽိုၵ်းတႅမ်ႈ Java Lesson 07 (ပိူင်တႅၵ်ႈ လၢႆးၼပ်ႉတူၺ်း Datatype)
လမ်ႇလွင်ႈယူႇၼင်ႇၵဝ်ႇ လူဝ်ႇလႆႈႁူႉဝႆႉ တီႈလႂ် လူဝ်ႇၸႂ်ႉဢၼ်လႂ်ၼႆ
Java code Example
public class lesson08 { public static void main(String []args){ char c ='A'; System.out.println(c); byte b = 122; System.out.println(Byte.SIZE); System.out.println(Byte.BYTES); System.out.println(Byte.MAX_VALUE); System.out.println(Byte.MAX_VALUE); short sh = 12223; System.out.println(Short.SIZE); System.out.println(Short.BYTES); System.out.println(Short.MAX_VALUE); System.out.println(Short.MAX_VALUE); int i = 1222323232; System.out.println(Integer.SIZE); System.out.println(Integer.BYTES); System.out.println(Integer.MAX_VALUE); System.out.println(Integer.MAX_VALUE); long l = 12223232307872l; System.out.println(Long.SIZE); System.out.println(Long.BYTES); System.out.println(Long.MAX_VALUE); System.out.println(Long.MAX_VALUE); float f = 1222322323232307872f; System.out.println(Float.SIZE); System.out.println(Float.BYTES); System.out.println(Float.MAX_VALUE); System.out.println(Float.MAX_VALUE); double d = 12223223232323323232323232323232307872f; System.out.println(Double.SIZE); System.out.println(Double.BYTES); System.out.println(Double.MAX_VALUE); System.out.println(Double.MAX_VALUE); } }
တွၼ်ႈၽိုၵ်းတႅမ်ႈ Java Lesson 06 (DataType - Interger )
လွင်ႈ DataType Char သိမ်းလႆႈတူဝ်ၼပ်ႉ(10)တူဝ် ၼႆယဝ်ႉ
Java Code Example
public static void main(String []args){ //Interger int i1 = 10; int i2 = 20; //int i3 = i1+i2; System.out.print(i1+i2); } }
တွၼ်ႈၽိုၵ်းတႅမ်ႈ Java Lesson 05 (DataType - Char )
လွင်ႈ DataType Char သိမ်းလႆႈတူဝ်လိၵ်ႈ တူဝ်လဵဝ် ပိူင်တႅၵ်ႈ ယူႇၼီႇၶူတ်ႉ
java code example
public class lesson_5 { public static void main(String []args) { char c = 'A'; System.out.println(c); String s ="Hello world Hello java"; System.out.println(s); String s2 ="100"; System.out.println(s2); /* Datatyp variablerNamev = Value ; */ } }
တွၼ်ႈၽိုၵ်းတႅမ်ႈ Java Lesson 04 (ၵုၼ်း၊ ထွၼ်၊ ၵိၼ်၊ လေႃး)
တွၼ်ႈၽိုၵ်း မၢႆသီႇၼႆႉ ၼႄပၼ် မၢႆထွၼ်၊ မၢႆလေႃး၊ မၢႆၵုၼ်း၊ တႄႇၵႂႃႇလႂ်ၸိူဝ်းၼႆႉၼႆယဝ်ႉ
java code example
public class lesson_4 { public static void main(String[]args){ System.out.println(5+8); System.out.println(15-10); System.out.println(4*3); System.out.println(54/3); } }
တွၼ်ႈၽိုၵ်းတႅမ်ႈ Java Lesson 03 ( /n , /t . မိူၼ် Enter , Tab )
ဢၼ်ၼႆႉၵေႃႈလမ်ႇလွင်ႈၵႆႉၸႂ်ႉယူႇတႃႇသေႇ တႃႇႁႂ်ႈတူဝ်လိၵ်ႈလူင်းထႅဝ်တႂ်ႈၼၼ်ႉ
Java code Example
public class lesson_3 { public static void main(String[]args){ // System.out.print("Hello\n");// System.out.print("world\n");// System.out.print("Hello\t");// System.out.print("java"); System.out.print("Hello\nWorld\nHello\tjava"); /* /n = Line (Println) ႁႂ်ႈတူဝ်လိၵ်ႈတူင်းတၢင်းတႂ်ႈ မိူၼ် Enter၊ တႅမ်ႈလၢႆဢၼ်ၵေႃႈလႆႈ၊ တႅမ်ႈဢၼ်လဵဝ်ၵေႃႈလႆႈ /t = tab (တႃႇႁႂ်ႈတူဝ်လိၵ်ႈယၢၼ်ၵႆၵၼ်) back select forward select */ } }
တွၼ်ႈၽိုၵ်းတႅမ်ႈ Java Lesson 02 (/n ႁႂ်ႈတူဝ်လိၵ်ႈလူင်းၽၢႆႇတႂ်ႈ မိူၼ် Enter )
public class lesson_2 { public static void main(String[]args){ System.out.println("Hello"); System.out.print("world"); } } //ပေႃးၶႂ်ႈႁႂ်ႈမၼ်းလူင်းထႅဝ်တႂ်ႈ သႂ်ႇပၼ် ln ၽၢႆႇလင် print ၼၼ်ႉ (print - println)
Sunday, June 10, 2018
IntelliJ IDEA တႃႇၽိုၵ်းတႅမ်ႈ Java
တႃႇတေတႅမ်ႈ Java ၼၼ်ႉ လူဝ်ႇလႆႈသႂ်ႇဝႆႉ Intelli JIDEA ၼႆႉၵွၼ်ႇ ယွၼ်ႉၼၼ်လႄႈ
ၸၼ်ဢဝ်သႂ်ႇဝႆႉတီႈၼႂ်းၶွမ်းၸဝ်ႈၵဝ်ႇလႆႈတီႈလိင်ႉတႂ်ႈၼႆႉ
IntelliJ IDEA Download
ပလွၵ်ႉမၢႆတွင်း ၶၢဝ်းၽွင်းႁဵၼ်း Java & Android
ၼင်ႇႁိုဝ်ပေႃႈတေႁႃၶိုၼ်းလႆႈငၢႆႈ ထူပ်းပၼ်ႁႃၸိူင်ႉႁိုဝ် လဝ်ႇၵႄႈၸိူင်ႉႁိုဝ်ၼႆ
တေတႅမ်ႈမၢႆဝႆႉတီႈၼႂ်းပလွၵ်ႉတႆးၼုမ်ႇၼႆယဝ်ႉ။
Subscribe to:
Posts (Atom)
လွၵ်းမိုဝ်း လႄႈ ၽွၼ်ႉ တႃႇၶွမ်း Windows (Keyboard and Fonts For Windows 7,8,10)
ၼင်ႇႁိုဝ်လႄႈ ပေႃးတေပဵၼ်တၢင်းၵမ်ႉထႅမ် တွၼ်ႈတႃႇၽူႈၸႂ်ႉတိုဝ်းၶွမ်းႁဝ်းၶဝ်ၼၼ်ႉ လူဝ်ႇမႃးမိူဝ်ႈလႂ်ၵေႃႈ ႁႂ်ႈပေႃးႁႃငၢႆႈ ၸၼ်ငၢႆႈ ယိူင်းဢၢၼ်း...
-
ၸႂ်ႉတူၺ်းၼင်ႇတႂ်ႈၼႆႉ code package com.example.jaotainum.welcomescreen; import android.content.Intent; import android.os.Hand...
-
ၼင်ႇႁိုဝ်လႄႈ ပေႃးတေပဵၼ်တၢင်းၵမ်ႉထႅမ် တွၼ်ႈတႃႇၽူႈၸႂ်ႉတိုဝ်းၶွမ်းႁဝ်းၶဝ်ၼၼ်ႉ လူဝ်ႇမႃးမိူဝ်ႈလႂ်ၵေႃႈ ႁႂ်ႈပေႃးႁႃငၢႆႈ ၸၼ်ငၢႆႈ ယိူင်းဢၢၼ်း...
-
ၸၢင်ႈႁဵတ်းလႆႈလၢႆလၢႆမဵဝ်း လူဝ်ႇၵႆႉၵႆႉၸၢမ်းတူၺ်း ဝူၼ်ႉတူၺ်း Java code example ublic class lesson_15 { public static void main (...