Core Java | Can we use return instead else?
#corejava #tamilkaruvoolam #javabasics
public class ReturnTest {
public static boolean isEven(int number){
if(number % 2 == 0){
return true;
}
return false;
}
public static void main(String[] args) {
System.out.println(isEven(11));
}
}
On this page of the site you can watch the video online Core Java | Can we use return instead else? with a duration of hours minute second in good quality, which was uploaded by the user Learn with Professor 22 September 2022, share the link with friends and acquaintances, this video has already been watched 92 times on youtube and it was liked by like viewers. Enjoy your viewing!