write a String expression whose value is the String equivalent of each these variables  joined by a single hyphen (-) So if areaCode, exchange, and lastFour, had the values  800, 555, and 1212, the expression’s value would be “800-555-1212”.

Java

LANGUAGE: JAVA CHALLENGE: Given three int variables that have been declared and given values, areaCode, exchange, and lastFour, write a String expression whose value is the String equivalent of each these variables  joined by a single hyphen (-) So if areaCode, exchange, and lastFour, had the values  800, 555, and 1212, the expression’s value would be “800-555-1212”. Alternatively, if…

Read More

write a String expression consisting of the string “http://” concatenated with the variable’s String value. So, if the variable refers to “www.turingscraft.com”, the value of the expression would be “http://www.turingscraft.com”.

Java

LANGUAGE: JAVA CHALLENGE: Given a String variable address, write a String expression consisting of the string “http://” concatenated with the variable’s String value. So, if the variable refers to “www.turingscraft.com”, the value of the expression would be “http://www.turingscraft.com”.

Read More