abstract class Test{ private static int getHalf(int i){ return i/2; } public static void main(String[] str){ int half=getHalf(0); System.out.println("Result is:"+half); } }
Login in to like
Login in to comment
or Read more about Java Quizzes
Login in to like
Login in to comment