首页 > 代码库 > ScannerTest-------double string

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);   

  }

}

 

 

 

ScannerTest-------double string