package com.javahonk.operatortest;publicclassOperatorTest{publicstaticvoidmain(String[] args){int i =10;//it will check if i equals 10 if true// will print first value otherwise second value
i =(i ==10?10:0);
System.out.println(i);}}