DISQUS

Tech-Recipes: Java if statement syntax | Java programming | Tech-Recipes

  • Anonymous · 5 years ago
    nice job
  • Anonymous · 4 years ago
    what about the pipe | in an if statement and other things? I think this leaves out a lot to be had.
  • richie · 10 months ago
    if ( x == 1 )
    System.out.println("one");
    else if ( x > 1 ) {
    y = x*2;
    System.out.println("many");
    } else {
    y = -x;
    System.out.println("negative");
    }
  • richie · 10 months ago
    thanks and what are the output?