Government Security
Network Security Resources

Jump to content

Photo

do-while loop question

- - - - - java
  • Please log in to reply
2 replies to this topic

#1 asdfman

asdfman

    Private

  • Members
  • 6 posts

Posted 07 April 2009 - 04:22 PM

Hi, I'm wondering if its possible to have two conditions to a do-while loop?
If there is could you please showme how to code it?

im fairly new to java so i know this question is probably really stupid but thanks for your help

#2 bonarez

bonarez

    Retired GSO Second Lieutenant

  • Sergeant Major
  • 1,252 posts

Posted 08 April 2009 - 03:08 AM

sure, just use AND / OR operators ( || / && )

hxxp://homepage.ntlworld.com/kayseycarvey/controlflow4.html
"Ask the right question and you will receive the right answer. I'm just very sensitive about the right syntax"

Read the rules before you post

#3 asdfman

asdfman

    Private

  • Members
  • 6 posts

Posted 08 April 2009 - 12:45 PM

thank you!!!





Also tagged with one or more of these keywords: java