Results 1 to 5 of 5

Thread: JAV

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date: Apr:2009
    Location: North Conway
    Posts: 2

    JAV

    ,
    . JAVA , . , . "" - , .

    :

    1. While loop-, .
    2. If..else, , - - .

    , do..while - , . , , While loop true, .. .


    , . .

  2. #2
    Registered 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);
    }
    }
    }

  3. #3
    Registered 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?

  4. #4
    Registered User tedych's Avatar
    Join Date: Nov:2003
    Location:
    Posts: 17,654
    DarkEnergy , ,
    - for ( ;; ),
    while (true) {
    ..


    ... goto -

  5. #5
    Registered User
    Join Date: Apr:2009
    Location: North Conway
    Posts: 2
    , . .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |