Results 1 to 5 of 5
Thread: JAV
Hybrid View
-
27th April 2009 06:31 #1Registered User
Join Date: Apr:2009
Location: North Conway
Posts: 2
JAV
,
. JAVA , . , . "" - , .
:
1. While loop-, .
2. If..else, , - - .
, do..while - , . , , While loop true, .. .
, . .
-
27th April 2009 10:04 #2Registered User
Join Date: Apr:2009
Location:
Posts: 243
private long guess(int a, int b) {
...
return something;
}
...
public static void main(String[] args) {
boolean one_more_game = true;
String input = null;
MyClass mc = new MyClass();
...
...
...
while(one_more_game) {
...
...
...
if (input.equals("exit")) {
one_more_game = false;
// ili zabrawi za uslovieto
// i napisi while (true) {}
// i tuk System.exit(666);
}
}
}
-
27th April 2009 13:02 #3Registered User
Join Date: Oct:2006
Location: Plovdiv
Posts: 305
- - -

private long guess(int a, int b) {
...
return something;
}
...
public static void main(String[] args) {
for( ;; ) {
...
...
...
if (input.equals("exit")) {
break;
}
}
}prepBut nI vrbLike adjHungarian! qWhat's artThe adjBig nProblem?
-
27th April 2009 14:14 #4
DarkEnergy , ,
- for ( ;; ),
while (true) {
..
... goto -
-
27th April 2009 23:20 #5Registered User
Join Date: Apr:2009
Location: North Conway
Posts: 2
, . .




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