0
0

More than 3 years have passed since last update.

Main.java

Posted at

import java.util.Scanner;

class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);

System.out.print("名前:");
// 文字列の入力を受け取ってください
String firstName = scanner.next();

System.out.print("名字:");
// 文字列の入力を受け取ってください
String lastName = scanner.next();

System.out.print("年齢:");
// 整数の入力を受け取ってください
int age = scanner.nextInt();

System.out.print("身長(m):");
// 小数の入力を受け取ってください
double height = scanner.nextDouble();

System.out.print("体重(kg):");
// 小数の入力を受け取ってください
double weight = scanner.nextDouble();

Person.printData(Person.fullName(firstName, lastName), age, height, weight);

}
}

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0