Notes on Reference Citations - Version 2.70, by Dr. Herong Yang
Java - Boolean
'Execution Process, Entry Point, Input and Output' tutorial was cited in a Xtreme Visual Basic Talk article in 2004.
The Execution Process, Entry Point, Input and Output tutorial was cited in a Xtreme Visual Basic Talk article in 2004. Note that my Geocities site has been moved to herongyang.com now.
Subject: java - boolean Date: Feb 17, 2004 Author: hedgehog24 Source: http://www.xtremevbtalk.com/showthread.php?p=653811 >ive made a program so far, however when you select a member in the >search i wanted it to prompt, "is this the correct member (y/n)" the >problem is i dont know how to code it in java, ive looked through the >forum and seen no example of y/n or true false from what i could find. > >could some1 give me an example. ? ... I think mrjeffy's solution will work. However the optionpane dialog will show up as a Window Dialog and your program execution probably won't now automatically terminate at the end of your main() function. To read input from the consol I think you are meant to use System.in and read console input exactly like file i/o. I'm sure there is a i/o tutorial on sun's java site but this page: http://www.geocities.com/herong_yang...execution.html might contain information for what you want to do. Alternatively you could use this class TextIO.java to keep things simple.
Table of Contents