似梦似醒

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

import java.util.Scanner;

public class ScannerTest {

  public static void main(String[] args) {
    Scanner s = new Scanner(System.in);
    //receive string
    String str = s.next();

    //receive integer
    Integer i = s.nextInt();

    //receive double
    Double d = s.nextDouble();

    System.out.println(str+i+d);
  }
}

posted on 2017-03-14 18:36  人生如梦,梦如人生  阅读(130)  评论(0编辑  收藏  举报