ScannerTest-------double string

时间:2021-03-24 15:21:03

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

ScannerTest-------double     stringScannerTest-------double     string

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     stringScannerTest-------double     string