вводил значения, условия выполнялись, а выводит что лажа по всем пунктам
package com.javarush.task.task15.task1519;
import java.io.*;
import java.util.*;
/*
Разные методы для разных типов
*/
public class Solution {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String string = reader.readLine();
int string1 = Integer.parseInt(string);
reader.close();
while (!string.equals("exit")) {
if (string.indexOf(".") != -1) {
print(Double.parseDouble(string));
}
if (string1 > 0 && string1 < 128) {
print(Short.parseShort(string));
}
if (string1 >= 0 || string1 <= 128) {
print(Integer.parseInt(string));
}
else print(string);
break;
}
}
public static void print(Double value) {
System.out.println("Это тип Double, значение " + value);
}
public static void print(String value) {
System.out.println("Это тип String, значение " + value);
}
public static void print(short value) {
System.out.println("Это тип short, значение " + value);
}
public static void print(Integer value) {
System.out.println("Это тип Integer, значение " + value);
}
}