/* * Problem1.java * * A program with lots of syntax errors! */ import java.util.*; public Problem1 { /* * This static method should take an integer x and return: * - the opposite of x when x is negative * - 10 more than x when x is non-negative and even * - the unchanged value of x when x is non-negative and odd */ public static adjust(x) if x < 0: x * -1; elif x % 2 = 0: x =+ 10 return x; } public main(String[] args): Scanner console = Scanner() System.out("Enter an integer x: ") x = console.nextInt(); System.out('adjust(x) = ', adjust(x)); }