Double IFTHENELSE in Java

I've gotten pretty good with VB.NET, but now I need to write a simple program in Java and I'm having trouble getting the syntax correct. I am to enter three numbers and output the high and low. The program would obviously contain an initial 'if num1 > num2 then' followed by an 'if num1 > num3 then'. There are many tutorials about how to write a simple IFTHENELSE, but how would the correct syntax for this be in Java?
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories