Students, please be sure to log in. This site does not use cookies and does not track/store work submitted when not signed in.
Unit 1 Problems
Java Reference Sheet
name
Finish the code below so that it returns Your name is Justin and your age is 16
using the variables provided. Do not hard code the String!
Reminders: String concatenation
You can concatenate (String addition) two strings with the + operator. Examples are shown below.
"Hello "+"World" produces "Hello World"
You can also mix and match types with Strings. Non-string types will convert to Strings.
String temp = "You are number " + 1; //temp will store "You are number 1"