Hi everyone,
the below program can executes with out the statements written in red
color
what is the use of the method in this program....pls tell me
public class ConditionalOperator {
/** Creates a new instance of ConditionalOperator */
public ConditionalOperator() {
}
public static void main(String[] args) {
String status = "";
int grade = 80;
status = (grade >= 60)?"Passed":"Fail";
System.out.println( status );
}
}
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---