- 1
Java Exception
Guys help me for handle /solve Exception in this program http://www.sololearn.com/app/sololearn/playground/c04QBwKXG5Ai/
3 Antworten
0
import java .util.Scanner ;
public class Main{
private static Scanner sc;
static void run(int q){
Scanner sc = new Scanner(System.in);
String a = "raja";
System.out.println(a+" "+q);
/*
Scanner sc = new Scanner(System .in);
int q;
System.out.println("enter the value");
q = sc.nextInt();
String a = "raja";
System.out.println (a+" "+q);
}
*/
}
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("Enter a number: ");
int q = sc.nextInt();
run(q);
}
}
0
oh OK, I put back the threads
- 1
Thanks but I want answer by using threads