Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact

Tips and short articles on this subject
Class Loading and Variable Conversion in Java
Question on division (Java) - Also Perl, PHP, Python ...
Conversion and coercion in Java
Well House Consultants
You are on the site of Well House Consultants who provide Open Source Training Courses and business hotel accommodation. You are welcome to browse and use our resources subject to our copyright statement and to add in links from your pages to ours.
Other subject areas - resources
Java Resources
Well House Manor Resources
Perl Resources
Python Resources
PHP Resources
Object Orientation and General topics
MySQL Resources
Linux / LAMP / Tomcat Resources
Well House Consultants Resources
Extras Resources
C and C++ Resources
Ruby Resources
Tcl/Tk Resources
Web and Intranet Resources
Java module J703
Variables
Exercises, examples and other material relating to training module J703. This topic is presented on public courses Learning to Program in Java, Java Bootcamp, Java Programming for the Web

Learning to Program in Java - Writing Java programs for newcomers to programming. This course introduces you to programming in the Java programming language. ...
http://www.wellho.net/course/sjfull.html  [course]
Java Bootcamp - An intense course on Java programming, Servlets and JSPs This course introduces you to the Java programming language, and its Internet ...
http://www.wellho.net/course/bjfull.html  [course]
Java Programming for the Web - Learn to write server- or client-side applications in Java. This course introduces you to the Java programming language, ...
http://www.wellho.net/course/jpfull.html  [course]
The accuracy and conversion of primitive arithmetic variables in Java is something that I'm questioned on regularly. Ideally in Java, you'll perform ...
http://www.wellho.net/mouth/127_Conv ... -Java.html  [short article]
Q: What's the difference between % and /? A: / returns the result of a division % returns the remainder when you do a division. Divide 18 by 7 you ...
http://www.wellho.net/mouth/1448_Que ... thon-.html  [short article]
How long does a variable last? When you set a variable in a Java Servlet (a Java programming that's running on a web server in a container such as Tomcat), ...
http://www.wellho.net/mouth/2148_Var ... tions.html  [short article]
import java.util.*; import java.io.*; /** Reading from the keyboard or a file This is an example used on our Java Programming courses to provide early ...
http://www.wellho.net/resources/ex.php4?item=j703/WellHouseInput.java  [code sample]

Information that's produced by one Java statement and used in later ones is held in variables. In Java, variables must be declared before they are used, and you must specify the type of information they contain. Operations can be performed on variables, and casting can be used to convert information of one type to another.

This topic is presented on public courses Learning to Program in Java, Java Bootcamp, Java Programming for the Web

Examples from our training material
Add2.java   Adding and declaring variables in a single statement
Addup.java   Simple use of variables - adding
Av2.java   Average - fails at compile
Av3.java   Average - *this* one works
Av3b.java   An alternative working example
Average.java   Averages - how NOT to (try to) do it
Cost.java   Reading a cost from the user
WellHouseInput.java   Easy user interaction class
Pictures
On site training in Oxford
Background information
This module is available under an Open Training Notes License for free download from http://www.training-notes.co.uk.
Topics covered in this module
First use of variables in Java.
Variable names.
Declaring and initialising variables.
Primitive types.
Type casting and conversion.
Reading input from the user.
Complete learning
If you are looking for a complete course and not just a information on a single subject, visit our Listing and schedule page.

Well House Consultants specialise in training courses in Java,Python, Perl, PHP, and MySQL. We run Private Courses throughout the UK (and beyond for longer courses), and Public Courses at our training centre in Melksham, Wiltshire, England. It's surprisingly cost effective to come on our public courses - even if you live in a different country or continent to us.

We have a technical library of over 700 books on the subjects on which we teach. These books are available for reference at our training centre. Also available is the Opentalk Forum for discussion of technical questions.


You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2010: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 707126 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho