I am a new programmer in Java and now I am facing the following problem. If u please answer my queries it will be very much helpful to me.
Can I use the following code :
(a == 2) ? return 4 : return 5;
instead of the following code :
if(a == 2)
return 4;
else
return 5;