- 1

Java Exception

Guys help me for handle /solve Exception in this program http://www.sololearn.com/app/sololearn/playground/c04QBwKXG5Ai/

8th Nov 2016, 5:39 PM
sabreen anjum
sabreen anjum - avatar
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); } }
8th Nov 2016, 6:33 PM
Abdelaziz Abubaker
Abdelaziz Abubaker - avatar
0
oh OK, I put back the threads
8th Nov 2016, 7:55 PM
Abdelaziz Abubaker
Abdelaziz Abubaker - avatar
- 1
Thanks but I want answer by using threads
8th Nov 2016, 7:08 PM
sabreen anjum
sabreen anjum - avatar