Difference between revisions of "Java Fundamentals"

From CompSciWiki
Jump to: navigation, search
(Don't know what I did so I have reverted it! oops....)
 
(29 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{1010Chapter|Introduction=In chapter 2, you learned what programming is. This chapter will cover the basics of Java programming and give you enough information to write your first Java program.
+
{{1010Chapter|ChapterNum=2
}}
+
|Picture=Wiki_chars03.jpg
 +
|Introduction=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'!
 +
 
 
__NOTOC__
 
__NOTOC__
  
==[[Your First Java Program]]==
+
|Body=
  
 
==[[Comments]]==
 
==[[Comments]]==
 
 
==[[Output using System.out.]]==
 
==[[Output using System.out.]]==
 
+
==[[Output using JOptionPane]]==
==[[Input/Output using JOptionPane]]==
+
==[[Input using JOptionPane]]==
 
+
==[[Input using Scanner]]==
 
==[[Variables and Literals]]==
 
==[[Variables and Literals]]==
 
 
==[[Common Primitive Variables]]==
 
==[[Common Primitive Variables]]==
 
+
==Operators==
==[[Arithmetic Operators]]==
+
===[[Arithmetic Operators]]===
 
+
===[[Relational Operators]]===
==[[Logical Operators]]==
+
===[[Logical Operators]]===
 
+
===[[Increment and Decrement Operators]]===
==[[Relational Operators]]==
+
 
+
 
==[[Strings]]==
 
==[[Strings]]==
 
==[[Increment and Decrement Operators]]==
 
 
 
==[[Casting]]==
 
==[[Casting]]==
 
 
==[[Named Constants]]==
 
==[[Named Constants]]==
 
==[[Compiling and the Java Virtual Machine]]==
 
 
 
==[[Your_First_Java_Program_Review_Questions_and_Exercises|Review Questions and Exercises]]==
 
==[[Your_First_Java_Program_Review_Questions_and_Exercises|Review Questions and Exercises]]==
  
==[[Your First Java Program Solutions|Solutions]]==
 
  
{{Category:COMP 1010}}
+
|PChapterNum=1
 +
|PChapterLink=[[What_is_Programming%3F|What is Programming?]]
 +
|NChapterNum=3
 +
|NChapterLink=[[Calling Methods]]
 +
}}

Latest revision as of 15:52, 25 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