Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
Help us understand the problem. What is going on with this article?

Main.java

// java.util.Scannerを読み込んでください
import java.util.Scanner;

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

System.out.print("名前: ");

// 変数nameを定義し、コンソールから文字列を受け取って代入してください
String name = scanner.next();

// 「こんにちは◯◯さん」と出力してください
System.out.println("こんにちは"+name+"さん");

}
}
//コンソールから文字列を受け取る

toukanno
PHP MySQL について聴きたいです。駆け出しのエンジニアです。
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away