Monday, September 22, 2014

Conditional Operators In Java

Program:

package munim2;

public class dron {
public static void main(String[] args){

int size;
size=40;
System.out.println(size>30 ? "your size is big" : "your size is small");
}

}

Screenshots

Program


Output



No comments: