/* * Problem1.java * * A program with lots of syntax errors! */ import java.util.*; Public class Problem1: /* * This static method should take an integer x and return: * x + 1 if x is even * the unchanged value of x when x is odd */ public static makeOdd(x) { if x % 2 = 0: x =+ 1 return x; } public void main(String args) { { console = Scanner(System.in) System.print('Enter an integer x: ') int x = Scanner.nextInt() System.println("makeOdd(x) = ", makeOdd(x)); console.close(); } }