lab_7 - CSE 110 Laboratory Assignment 7 This assignment is...

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

View Full Document Right Arrow Icon
CSE 110 Laboratory Assignment 7 This assignment is due by 11:59 PM on Sunday, March 25. Submit your .java fle through e-mail — see the course Web page For the e-mail address that corresponds to your lab day and time. Lab Description Earlier this semester, we learned how to convert numbers From base 10 to other bases using division. In this week’s lab, we will write a small Java program to automate this task. So Far, the variables we have used have been numeric types: integers and ±oating-point (decimal) values. IF we want to represent other kinds oF data (letters, symbols, or words), we can use two other types oF variables: char and String . char variables store a single character, while String variables can store a sequence oF characters (like a word or a complete sentence). You can declare and initialize a String variable just like the other kinds oF variables that we’ve seen: String x = “abcd”; Note the double quotes; they tell Java that everything inside them is a sequence oF characters. We can use the addition operator (+) to join two
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/29/2012 for the course CSE 110 taught by Professor Shaunakpawagi during the Spring '08 term at SUNY Stony Brook.

Page1 / 2

lab_7 - CSE 110 Laboratory Assignment 7 This assignment is...

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