User Name
|
FallingTears |
Unique Hits
|
375 |
Real Name
|
Samuel S. |
Location
|
United States Kentucky Russell |
Occupation
|
Computer Programming Student |
Gender
|
Male |
Age
|
25 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 |
7.00 out of 10 |
|
|
|
Fun with Arrays Part 2
Java
|
27 Days Ago
|
0
|
- - -
|
- - -
|
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
|
40 Days Ago
|
0
|
- - -
|
- - -
|
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
|
|
|
Stock Market Version 2.0
Java
|
47 Days Ago
|
0
|
5.00
|
- - -
|
1,578 Chrs
|
|
This calculates the projected stock increase for 56 days. This version is optimized .. much better than the first! Tell me this isn't better, I dare you!
|
|
Please login to post comments. |
|
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.
|
|
Heya there, i got started on graphics simply by looking at other websites for inspiration.
Getting ideas etc.
I then went onto reading tutorials on design etc. Like how to make a template for websites.
Once you know the basics you can pretty much mess about and get to know how YOU work.
Then the rest comes easy to you.
Ant
|
|
 |
Samuel S. (25) United States, Kentucky, Russell |
|
FallingTears has 3 fans
become a fan |
|
 |
|
 |
|