Hasnextdouble

hasnextdouble
import java.util.Scanner;

public class DataTypeFinder {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);

String type = scanner.nextLine();

while (!type.equals(“END”)) {
Scanner input = new Scanner(type);
if (input.hasNextBoolean()) {
hasnextdouble informational hasnextdouble
System.out.printf(“%s is boolean type%n”, type);
} else if (input.hasNextInt()) {
System.out.printf(“%s is integer type%n”, type);
} else if (type.length() == 1) {
System.out.printf(“%s is character type%n”, type);
} else if (input.hasNextDouble()) {
System.out.printf(“%s is floating point type%n”, type);
} else if (input.hasNextLine()) {
System.out.printf(“%s is string type%n”, type);
}
hasnextdouble best of hasnextdouble
type = scanner.nextLine();
}
}
}
hasnextdouble

Masteroverwatch.com

What Did You Just Say To Me You Little Bitch