Public feed
#889387
import java.io.*;
class addition
{
public static void main (String args[])
{
try
{
String a1,b1;
int a,b,c;
BufferedReader infile = new BufferedReader(new InputStreamReader (System.in));
System.out.print("Bitte 1. Zahl eingeben: ");
a1= infile.readLine();
// a = Integer.parseInt ( a1.trim() );
// DIESEN BLOCK ALS METHODE UNTEN DRAN HÄNGEN
// String add String(a1)
a=Integer.parseInt(a1);
c= a*a;
System.out.print("Ergebnis: " + c );
// BIS HIERHIN... DIE 3 ZEILEN ALSO ...
}
catch (Exception KeineZahlSondernBuchstabe)
{
System.out.println("Gib eine Zahl ein " + KeineZahlSondernBuchstabe);
}
}
}