Program Java Sederhana Menggunakan Java.lang

Mari kita belajar Java kembali, sampai saat ini, saya masih belajar dasar-dasar pemrograman yang berbasis OOP ini…nyobain bikin program sederhana pake Java lang ama Boolean nih yang true false itu loh…

cek it out…

import static java.lang.System.out;

class hayo{

public static void main(String args[]){

out.println(“bener gak ya 1400/150  hasilnya >=10”);

out.println(“coba tebak”);

int a = 150;

int b = 1400;

int c = b/a;

boolean d = c >=10;

out.println(“true or false ???? jawaban yang bener itu  “ +  d);

}

}

Output

About heni
I ♡ movie, traveling, fruits Worry less smile more fell happy anyway :)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: