I want to sum up this information that the user typed in. How can I implement it without too much change?
Console output
Vorname(First Name) : Max
Name(Last Name) : Mustermann
Adresse(adress): Musterstraße 1.
Telefon(Phone Number): 030/12345678
Code
import java.io.*;
public class InformationsEingabeBD {
public static void main(String[] args)throws IOException {
String str;
BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
System.out.print("Vorname : ");
str = input.readLine();
System.out.print("Name : ");
str = input.readLine();
System.out.print("Adresse: ");
str = input.readLine();
System.out.print("Telefonnummer: ");
str=input.readLine();
Integer.parseInt(str);
}
}