Results 1 to 3 of 3
Thread: (Java)
Hybrid View
-
9th May 2010 19:15 #1Registered User
Join Date: May:2010
Location:
Posts: 7
(Java)
Java.
:
:public class HelloJava {
byte centuries = 20;
short years = 2000;
int days = 730480;
long hours = 17531520;
System.out.println(centuries + " centuries is " + years +
" years, or " + days+ " days, or " + hours + " hours.");
}
, ( x-) :java.lang.NoSuchMethodError: main
Exception in thread "main"
, .Multiple markers at this line
-Syntax error on token "println", = expected after this token
-Syntax error on token(s), misplaced construct(s)
-
9th May 2010 21:29 #2Registered User
Join Date: Dec:2007
Location: Sofia
Posts: 366
,
Code:public class HelloJava { public static void main(String[] args) { // } }
-
9th May 2010 21:42 #3Registered User
Join Date: May:2010
Location:
Posts: 7
, , . , main . .
!




Reply With Quote
Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in