ScannerTest-------double string

import java.util.*;

public class ScannerTest {  

  public static void main(String[] args){

        Scanner scanner=new Scanner(System.in);

       String s=scanner.nextDouble();

        System.out.println(s);     } }

 

 

 

 

import java.util.*;

public class ScannerTest {  

  public static void main(String[] args){

        Scanner sc=new Scanner(System.in);

       String str=sc.nextLine();

        System.out.println(str);   

  }

}

 

 

 

posted @ 2014-09-17 14:03  fantasy12436109  阅读(173)  评论(0编辑  收藏  举报