The Artima Developer Community
Sponsored Link

Java Answers Forum
Boolean

2 replies on 1 page. Most recent reply: Nov 4, 2002 4:16 PM by Charles Bell

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 2 replies on 1 page
Valerie Tappin

Posts: 2
Nickname: val
Registered: Nov, 2002

Boolean Posted: Nov 4, 2002 4:06 PM
Reply to this message Reply
Advertisement
Please tell me how to use boolean in a programme.


Charles Bell

Posts: 519
Nickname: charles
Registered: Feb, 2002

Re: Boolean Posted: Nov 4, 2002 4:15 PM
Reply to this message Reply

boolean done = false;
while(!done){
int n = getNumber();
if (n = 77) done = true;
}

Charles Bell

Posts: 519
Nickname: charles
Registered: Feb, 2002

Re: Boolean Posted: Nov 4, 2002 4:16 PM
Reply to this message Reply

boolean done = false;
while(!done){
int n = getNumber();
if (n == 77) done = true;
}


Sorry!

Flat View: This topic has 2 replies on 1 page
Topic: JTable & cursor position Previous Topic   Next Topic Topic: come in please!!!

Sponsored Links



Google
  Web Artima.com   

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