import java.util.*; Public class Problem1: /* * This static method should take an integer x and return: * x * -1 if x is positive * the unchanged value of x otherwise */ public static makeNeg(x) { if x > 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("makeNeg(x) = ", makeNg(x)); console.close(); } }