How can I make my personal statement great?

How can I make a java statement without using an IF or a switch statement?

  • How can I make a java statement without using an IF statement?or a switch I need help writing a program that shows a specific numbers...there are 2 scenarios and I cant use an IF or ...show more

  • Answer:

    If it's just "one or the other" then use the ternary operator. something = (a < b ? a : b); This means If a<b, then a, otherwise b. You can use different comparison operators and different values, even strings, for a and b.

2OISVSRG5OZQBAGHQ5XVMAW5MI at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

System.out.println("text here in quotes");

dancer

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.