Difference between revisions of "Java Fundamentals"

From CompSciWiki
Jump to: navigation, search
m (Removed unnecessary {{Category:COMP 1010}} tags at the end)
Line 1: Line 1:
 
{{1010Chapter|ChapterNum=2
 
{{1010Chapter|ChapterNum=2
 
|Picture=Wiki_chars03.jpg
 
|Picture=Wiki_chars03.jpg
|Introduction=In chapter 2, you learned what programming is. By now you've written at least a few programs and should have a rough idea about the structure of a program. This chapter will cover the basics of Java programming and give you enough information to write programs that do more than output 'Hello World'!
+
|Introduction=In chapter 1, you learned what programming is. By now you've written at least a few programs and should have a rough idea about the structure of a program. This chapter will cover the basics of Java programming and give you enough information to write programs that do more than output 'Hello World'!
  
 
__NOTOC__
 
__NOTOC__

Revision as of 11:27, 22 November 2011


Wiki 1010 Table of Contents

Wiki chars03.jpg

Chapter 2

In chapter 1, you learned what programming is. By now you've written at least a few programs and should have a rough idea about the structure of a program. This chapter will cover the basics of Java programming and give you enough information 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