CSE110Lab4 - LabLetter: Name:...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Lab Letter:            Name:                                                                    CSE 110 Lab 4:  Objects and Classes in Java Pre-lab: Read the following pre-lab material before your lab session. References from the textbook: Objects and Object instances (Ch. 3, pg. 74-76) String class and its methods (Ch. 3, pg. 78-81) Random, DecimalFormat, and NumberFormat classes their methods (Ch. 3, pg. 84-86, 90-93) Pre-lab Questions: Answer these questions before your lab session. 1. Write a line of code that declares a new String variable called muffin and initializes it to hold the string " Muffins are delicious! " 2. What is the difference between DecimalFormat and NumberFormat ? 3. What happens if we pass a number to a Random 's nextInt() method (e.g., rand.nextInt(16); )? 4. What is the difference between
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/10/2010 for the course MATHEMATIC 242 taught by Professor Heckman during the Spring '10 term at Arizona.

Page1 / 3

CSE110Lab4 - LabLetter: Name:...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online