-1
사용자가 입력 한이 정보를 요약하고 싶습니다. 어떻게 많이 변경하지 않고 구현할 수 있습니까?사용자 입력 요약을 인쇄하는 Java 콘솔 프로그램
콘솔 출력
Vorname(First Name) : Max
Name(Last Name) : Mustermann
Adresse(adress): Musterstraße 1.
Telefon(Phone Number): 030/12345678
코드
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);
}
}
대단히 감사합니다. – burakburi
@burakburi 여러분 환영합니다. 제 대답을 받아주세요 :) – eol