Posted: November 29, 2008 – 6:26 am
Statement If
int grade = 68;
if( grade > 60 ){
System.out.println(”Congratulations!”);
System.out.println(”You passed!”);
}
Statement Else
int grade = 68;
if( grade > 60 ){
System.out.println(”Congratulations!”);
System.out.println(”You passed!”);
}
Else
{
System.out.println(”Sorry you failed”);
}
Read the rest of this entry »
Share/Save
Posted: November 29, 2008 – 6:23 am
Struktur control adalah pernyataan dari bahasa java untuk mengijinkan user memilih dan mengeksekusi blog kode spesifik dan mengabaikan kode yang lain. Struktur java ada 2 di antaranya : sturktur pemilihan (if, else, switch) dan struktur pengulangan(while, do-while, for). Di posting kali ini saya akan membahas struktur pemilihan.
Struktur pemilihan yang terdapat pada bahasa java yaitu : If, Else, Switch. Statement if berfungsi untuk menentukan pernyataan jika dan hanya jika pernyataan bernilai true.
Read the rest of this entry »
Share/Save
Posted: November 26, 2008 – 7:40 am
in order to chase the target unutk participate review.com I will try to use English to post. Presenting word hello output at java.Open application of java in your computer (beans net, JCREATOR etc) and Ascertain in your computer there are JDK java to be can compiler After open application give the name of helloworld.java, Type code source following.
public class helloworld
{
public static void main(String[] args)
{
System.out.println(”Apa Kabar Dunia?”);
}
}
After finishing compiler before and exekusi
Share/Save