// Java Beispiel if Anweisung
import java.io.*;
public class a13{
	public static void main(String irgendwas[]) throws Exception {
		LineNumberReader in = new LineNumberReader (new InputStreamReader (System.in));
		System.out.print("Bitte geben Sie eine (positive oder negative) Zahl ein: ");
		String Eingabe = in.readLine ();
		int Zahl = Integer.parseInt(Eingabe);
		int Betrag = absolutWert(Zahl);
		System.out.println("\nDer Betrag von " + Zahl + " = "+Betrag);
	}
	static int absolutWert (int x){
		if (x<0){
			 x=-x;
			 System.out.println("\nZahl wurde umgewandelt");
			 }
		else {
			 System.out.println("\nZahl wurde NICHT umgewandelt");
			 }
		return x;
				}
}