题解 | #成绩输入输出#

成绩输入输出

http://www.nowcoder.com/practice/eb49750ef0de47168c21761de086d97c

import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String threeScores = in.nextLine();
        String[] scores = threeScores.split(" ");
        System.out.println("score1=" + scores[0] + ",score2=" + scores[1] + ",score3=" + scores[2]);
    }
}
全部评论

相关推荐

01-26 19:51
门头沟学院 Java
isabener:怎么感觉像群发的呢
点赞 评论 收藏
分享
评论
5
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务