User Name
|
FallingTears |
Unique Hits
|
1,137 |
Real Name
|
Samuel S. |
Location
|
United States Kentucky Russell |
Occupation
|
Computer Programming Student |
Gender
|
Male |
Age
|
26 Years Old |
WebSite
|
- - - |
|
|
Java: Obtaining User Input - Part 1
Programming
|
Java: Basic User Input
Introduction
Today,
creating a successful application without user input is nearly impossible. In fact, I think the majority of commercial/enterprise programs requires user input of some kind. You might say, "Woah, wait a minute. What about games?" User's provide games with input. Using the keyboard or mouse to control certain aspects of a game is a form of input. I'm not going to cover that type of input with this article.
Instead, I'm going to cover basic console input in this article. Basic input can be used for various things. For example, employer's use basic input features to calculate an employee's pay check. Other programs, like programs found at different retailers, uses input to calculate the total price for items that customers buy. Input is one of the most important features of programming.
The Basics
When an individual takes the time to start learning Java he/she at some point will come upon a problem with obtaining user input.... View In Full
 |
2 Comments |
6.00 out of 10 |
|
|
|
Overloading Input & Output Streams
C++
|
235 Days Ago
|
2
|
- - -
|
- - -
|
2,102 Chrs
|
|
Based on a homework assignment, this program overloads the output and input operators along with the + and - operators. This program instantiates a Job object and the user inputs information for both
|
|
|
Fun with Arrays Part 2
Java
|
293 Days Ago
|
0
|
7.00
|
- - -
|
3,704 Chrs
|
|
The code stores the sum of two rolled dice in a 500 element array. The program demonstrates the power of OOP. This was the second part to an exam.
|
|
|
Fun with Arrays
Java
|
305 Days Ago
|
2
|
6.50
|
- - -
|
635 Chrs
|
|
My teacher assigned us the simpliest assignment dealing with arrays. That's why I call this assignment fun with arrays. The code assigns random numbers between 1 and 400 to a 100 element array. The
|
|
Please login to post comments. |
|
Why in the world are you posting on year old topics, lol?
|
|
Damn dude, you've been doing some heavy posting the last 10 minutes lol.
|
|
I'm glad you enjoyed my article :). If you have any questions, feel free to ask me.
|
|
If you like the code so much why'd you rate it so low -.-
|
|
Using the prefixes was the way the taught in my technical school. I see they can not keep up with the rapidly changing times. I see that Pascal case is a far better way to write my code. Thanks for the heads up. I should remove that article now and go brush up on this new way of naming controls. It is pretty strait forward though and I will start putting this into practice.
|
|
Why you coding everything in PHP4? Since your using classes, you really "should" be using PHP5.
Kind regards,
Scott
|
|
Yeah. Java is definitely simpler to pick up than C++. Previous knowledge will make learning a new language much easier.
|
|
I would avoid graphics for a while. If I were you I would learn key concepts like Object Orientation in Java. That is, learn things like classes, inheritance, abstraction, polymorphism, and interfaces.
|
|
Looks promising. Keep working on Java. It's a good "learning" language. There's a lot of other good things out there, though. If you ever need help, just ask me :)
Good luck.
|
|
 |
Samuel S. (26) United States, Kentucky, Russell |
|
FallingTears has 3 fans
become a fan |
|
 |
|
 |
|