Coder Profile - Show off your skills, get a coder profile.  
 
 
 
source codes Categories articles
Browse All
Databases (1)
Design & Creativity (1)
Internet & Web Sites (1)
Operating Systems (2)
Programming (31)
Security (8)
Software Development (3)
Web Development (4)
search Search Inside
Programming
4.00
out of 10

Java programming for the beginners. 5th article


PLEASE DON"T RANK IT YET- CAUSE IT"S NOT FINISHED YET
hey hey hey. got a long weekend here, so i thought of writing the 5th article

So like i said, i'll start talking about different IO ways, and in each article that will follow this one, i'll talk about different one specifically

section 2.3

Java allows the user to enter data in a variety of ways. i will try to explain three different methods of gathering user input. first will be DOS window based using the EasyReader class(the class which was written by some guy) because DOS-mode is not a �built-in� feature of JAVA. EasyReader class is an �add-on� to Java and is one of many different classes that have been written to gather user input in DOS mode (the other one that i heard of is Scanner class, but i will only learn it next year). i will speak more about later(if i'll get a chance of course, so stay tuned), for now it is important to know that Java does not have a built in method for collecting user input in DOS-mode and to do this we will be using the EASY READER class.

The second method of data input is DIALOGUE BOX using JOptionPane. JOPtionPane is considered to be GUI (Graphical User Interface) method (method means function(for other programs than Java).) for collecting user input. JOptionPane is powerful (and very nice from my perspective) because not only can it get input, but it can also display output.

The third method that i will hopefully put my hands on is most powerful and difficult to operate with. This method involved creating APPLETS and placing TEXTFIELDS within the applet to gather the users input. This method is also considered a GUI method for collecting user input.

The difficulty of using a GUI method for input is that the data-type of the input must be a STRING. This can be a real problem if you are writing lets say aa calculator prograrm and your input is not String data-type, but an int or a double.

so download, extract this attachment, adn put it in a folder where you write programs in java(this is to be able to use easy reader class)
PLEASE DON"T RANK IT YET- CAUSE IT"S NOT FINISHED YET

What would you rate this article?
Please login to rate and upload coding articles. To start registering a free account with us, click here..
Please login to post comments.
Page 1 of 1
More Articles By This Author
Recently Posted "Programming" Articles
Recently Rated "Programming" Articles
 
  Version 1.38.01
Part of the MyPingle Network
Copyright � 2007 - 2008, Scott Thompson, All Rights Reserved
Development Blog :: Contact Me :: Terms & Conditions :: Privacy Policy :: Documents