Blogger

Senin, 18 November 2013

Script Untuk Mendeklarasikan dan mencetak variabel Menggunakan Eclipse



package Respon1;

public class Respon_1 {
            public static void main(String[] args){
                  int number =10;
                  char letter ='a';
                  boolean result = true;
                  System.out.println("Number = " + number);
                  System.out.println("Letter = "+ letter);
                  System.out.println("Result = "+result);
                  System.out.println("Str = hello");
            }
}





Hasilnya adalah:

0 komentar:

Posting Komentar