The Artima Developer Community
Sponsored Link

Programming in Scala Forum
java program help

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
lala lola

Posts: 2
Nickname: lolalala
Registered: Oct, 2010

java program help Posted: Oct 17, 2010 5:14 PM
Reply to this message Reply
Advertisement
i am trying to write a main method program that uses a while loop to repeatedly input four integers. the body of the while loop should break out of the loops if any of the values inputted are negative, should invoke second() to determine the 2nd highest of the 4 values read, and should print the 2nd highest value. when the loops ends, the program should print the number of sets of 4 values read, including the one that contained the negative value. i have no idea where to begin except public static int second(int a, int b, int c, int d).....please help. i just need some guidance...

Topic: decimals Previous Topic   Next Topic Topic: Symbol literals?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use