hw1 - aNumber of type int and initialize it to the value 25...

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

View Full Document Right Arrow Icon
CS 302 Homework 1 - Due Thursday, June 16 Name: 1. Write a program (the entire Java code) that will print “Super” to the screen. Hint: Remember the simple program we did in class. 2. Declare a variable of type int whose name is numCows . 3. Declare a variable named myName of type String . 4. Declare a variable named
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: aNumber of type int and initialize it to the value 25 . 5. Declare a variable of type String named myAddress and initialize it to the value "123 Main" . 6. Using the variable from Question 5, write a statement that stores the length of that string in a variable of type int named strLen ....
View Full Document

This note was uploaded on 08/08/2008 for the course CS 302 taught by Professor Willbenton during the Spring '07 term at University of Wisconsin.

Ask a homework question - tutors are online