Notes102706 - main = name(String args = parameter list class Test public static void m1 System.out.println"m1 reached" public static void

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 Chapter 2 page 103 need to know Random in = new Random() nextDouble() //0.0-1.0 nextFloat() //0.0-1.0 nextInt() //32-bit nextInt(int i) //0-i nextLong() //64-bit 4-14 code example Err:510 ch 5 methods (return types) 2 types -> void-returning value - returning public static = method modifiers void = return type
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: main = name (String args) = parameter list class Test { public static void m1(){ System.out.println("m1() reached. ...") } public static void main (String args) { System.out.println("calling m1(). ...") m1() System.out.println("main method(). ......... ") }...
View Full Document

This note was uploaded on 03/11/2008 for the course CS 140 taught by Professor Kerbs during the Winter '06 term at Cal Poly Pomona.

Ask a homework question - tutors are online