Singh Anisha wrote:
If you dont want to use && It could be as such.
Steve
The best ideas are the crazy ones. If you have a crazy idea and it works, it's really valuable.—Kent Beck
How to Ask Questions  How to Answer Questions  Format Your Code
Bob Shangles wrote:My dad and I are currently using the book called Blue Pelican Java.(he also purchased the answer book too) We also supplement our reading by visiting this website and working on there exercises. We are currently working on the if Statements.
http://programmedlessons.org/java5/Notes/chap12/progExercises12.html
...
A correct order must have at least as many nuts as bolts and at least twice as many washers as blots
If there are exactly as many nuts as bolts, then the order is okay. Otherwise, if there exactly twice as many washers as bolts, then the order is okay. If neither of those situations is true, then check the order.
Steve
Singh Anisha wrote:sorry my typing mistake..
This is only to replace &&
Second else will remain same.
Steve
The best ideas are the crazy ones. If you have a crazy idea and it works, it's really valuable.—Kent Beck
How to Ask Questions  How to Answer Questions  Format Your Code
passwords must contain 14 characters, a number, punctuation, a small bird, a bit of cheese and a tiny ad.
Building a Better World in your Backyard by Paul Wheaton and Shawn KlassenKoop
https://coderanch.com/wiki/718759/books/BuildingWorldBackyardPaulWheaton
