Difference between revisions of "Java Fundamentals"

From CompSciWiki
Jump to: navigation, search
(Changed the titles of some sections to better describe what they do.)
(Reverted to this - I forgot to change the name properly)
Line 8: Line 8:
  
 
==[[Comments]]==
 
==[[Comments]]==
==[[Writing to the Console]]==
+
==[[Output using System.out.]]==
==[[Creating a Dialog Box]]==
+
==[[Output using JOptionPane]]==
==[[Get User Input From a Dialog Box]]==
+
==[[Input using JOptionPane]]==
 
==[[Input using Scanner]]==
 
==[[Input using Scanner]]==
 
==[[Variables and Literals]]==
 
==[[Variables and Literals]]==

Revision as of 09:37, 23 November 2011


Wiki 1010 Table of Contents

Wiki chars03.jpg

Chapter 2

In Chapter 1, you saw an introduction to Java and the structure of a basic program. With this knowledge we can now move into further detail about Java fundamentals that will enable you to write programs that do more than output 'Hello World'!


  Write a Program a Day Case Studies

Comments

Output using System.out.

Output using JOptionPane

Input using JOptionPane

Input using Scanner

Variables and Literals

Common Primitive Variables

Operators

Arithmetic Operators

Relational Operators

Logical Operators

Increment and Decrement Operators

Strings

Casting

Named Constants

Review Questions and Exercises




Chapter 1: What is Programming? Table of Contents Chapter 3: Calling Methods