Tips for heathy life

Tips for heathy life

Jumat, 31 Oktober 2008

Selection Operator 1 in Java

String status = "";
int grade = 80;
//mendapatkan status pelajar
status = (grade >= 60)?"Passed":"Fail";
//print status
System.out.println( status );

0 komentar:

Posting Komentar