25585 ex2 urce Packages lab6 ex2 10 * @author osama 11 LAB6 ex2.java 12 import java.io.*; 13 fname 14 import java.util.*; Test Packages 15 16 import java.io.File; Libraries 17 JDK 1.8 (Default) public class LAB6 ex2 { 18 Test Libraries 19 E EST121212 éparam args the command line arguments ethrows java.io.IOException 20 21 22 public static void main(String{] args)throws IOException # TODO COde applicatien logic nere T| variable declaration- 23 F 24 25 26 String fname=new String(): 28 29 Scanner inp=new Scanner(System.in);//Scanner object 30 31 Iname-args[0];//ReadEilaname frOm cmd- 32 33 while (Ename==null){ /I Elerame not gten in cmd Output Debugger Console x LAB6_ex2 (run) × run D Exception in thread "main" ava.lang.ArrayIndexOutOEBoundsERception:0 at labe ex2 LABE ex2 main(LABE ex2 java:31) C:Users\osama AppData Local NetBeans\Cache\8.2texecuter-snippets\zun.ml:53E Java returned: 1 BUILD FAILED (Eotal time 0 seconds) a S Output O Type here to search 1080- FULL HD

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

How to solve this error?

25585
ex2
urce Packages
lab6 ex2
10
* @author osama
11
12 E import java.io.*;
LAB6_ex2.java
13
fname
14
import java.util.*;
Test Packages
15
<default package
16
import java.io.File;
Libraries
public class LAB6 ex2 {
17
JDK 1.8 (Default)
18
Test Libraries
19 E
EST121212
@param args the command line arguments
ethrows java.io.IOException
20
21
22
23 E
public static void main(String{] args)throws IOException
# TODO COde applicatien Iogic nere
T| variable declaration
24
25
26
String fname=new String():
28
29
Scanner inp=new Scanner(System.in);//Scanner object
30
31
Iname-args[0];//ReadEilaname frOM cmd-
32
33
while (fname==null) {U/ Elename net given in cm
Output
Debugger Console x LAB6_ex2 (run) ×
run
D Exception in thread "main" ava.lang.ArrayIndexOutOEBoundsERception:0
at labe ex2 LABE ex2 main(LABE_ex2.java:31}
C:Users\osama AppData Local NetBeans\Cache\8.2texecuter-snippets\zun.ml:53E Java returned: 1
BUILD FAILED (Eotal time 0 seconds)
a 5 Output
O Type here to search
1080-
FULL
HD
Transcribed Image Text:25585 ex2 urce Packages lab6 ex2 10 * @author osama 11 12 E import java.io.*; LAB6_ex2.java 13 fname 14 import java.util.*; Test Packages 15 <default package 16 import java.io.File; Libraries public class LAB6 ex2 { 17 JDK 1.8 (Default) 18 Test Libraries 19 E EST121212 @param args the command line arguments ethrows java.io.IOException 20 21 22 23 E public static void main(String{] args)throws IOException # TODO COde applicatien Iogic nere T| variable declaration 24 25 26 String fname=new String(): 28 29 Scanner inp=new Scanner(System.in);//Scanner object 30 31 Iname-args[0];//ReadEilaname frOM cmd- 32 33 while (fname==null) {U/ Elename net given in cm Output Debugger Console x LAB6_ex2 (run) × run D Exception in thread "main" ava.lang.ArrayIndexOutOEBoundsERception:0 at labe ex2 LABE ex2 main(LABE_ex2.java:31} C:Users\osama AppData Local NetBeans\Cache\8.2texecuter-snippets\zun.ml:53E Java returned: 1 BUILD FAILED (Eotal time 0 seconds) a 5 Output O Type here to search 1080- FULL HD
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY