Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to use ? in java without using if

switch( CONDITION ? 1 : 0 )
{
    case 1:
        //... true code
        break;
    case 0:
        //... false code
        break;
}
 
PREVIOUS NEXT
Tagged: #java
ADD COMMENT
Topic
Name
3+3 =