I've no idea what should i do???
pls help yaar...
package com.codegym.task.task15.task1519;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.util.Scanner;
/*
Different methods for different types
*/
public class Solution {
public static void main(String[] args) throws IOException {
//write your code here
Scanner sc = new Scanner(System.in);
double a;
short b;
int c;
String d;
a = sc.nextDouble();
b = sc.nextShort();
c = sc.nextInt();
for(;;){
d = sc.nextLine();
if (d.equals("exit")) break;
}
}
public static void print(Double value) {
System.out.println("This is a Double. Value: " + value);
}
public static void print(String value) {
System.out.println("This is a String. Value: " + value);
}
public static void print(short value) {
System.out.println("This is a short. Value: " + value);
}
public static void print(Integer value) {
System.out.println("This is an Integer. Value: " + value);
}
}