The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
October 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Logic

Posted by Vijay on October 03, 2000 at 5:16 PM

Hi Zola,

Please go through the following code:

public void aMethod()
{
boolean valid = false;

do
{
//read something

if( input read is right )
valid = true;
else
print(//wrong input);

}while(valid == false);

}


This should be the logic for your three queries.


All the best,
Vijay.



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us