+ 1

Can anyone explain to resolve the error in the below code at line 5 ?

https://code.sololearn.com/cBqy8G0xQE6k/?ref=app

6th Jul 2018, 1:04 PM
Surisetti Maheswari
Surisetti Maheswari - avatar
3 ответов
+ 7
bro where is psvm(){} and.. if you used try catch statement so why used throws keyword?? there is not LnetAddress class in java there is InetAddress class
6th Jul 2018, 7:52 PM
Arun Tomar
Arun Tomar - avatar
+ 4
You forgot to give your function a name, without that the compiler doesn't know what it is. Maybe you meant "main"?
6th Jul 2018, 1:08 PM
Shadow
Shadow - avatar
+ 2
ohhh. okay and thank you very much
8th Jul 2018, 7:05 AM
Surisetti Maheswari
Surisetti Maheswari - avatar