I was marked off 2 points from my teacher because he said this part of my code was redundant. What could I have done to make it less redundant?
if (x < 30) { a=2; x++; System.out.println("Java is awesome! " + x); } else { a = 2; System.out.println("Java is awesome! " + x); }