Posts Tagged ‘20851’
Given three String variables that have been declared and given values, firstName, middleName, and lastName, write an expression whose value is the initials of the three names: the first letter of each, joined together. So if firstName, middleName, and lastName, had the values “John”, “Fitzgerald”, and “Kennedy”, the expression ‘s value would be JFK”. Alternatively, if firstName, middleName, and lastName, had the values “Franklin”, “Delano”, and “Roosevelt”, the expression’s value would be “FDR”.
LANGUAGE: JAVA CHALLENGE: Given three String variables that have been declared and given values, firstName, middleName, and lastName, write an expression whose value is the initials of the three names: the first letter of each, joined together. So if firstName, middleName, and lastName, had the values “John”, “Fitzgerald”, and “Kennedy”, the expression ‘s value would be…
Read Morewrite an expression whose value is the initials of the three names : the first letter of each, joined together.
LANGUAGE: JAVA CHALLENGE: Given three String variables that have been declared and given values, firstName, middleName, and lastName, write an expression whose value is the initials of the three names : the first letter of each, joined together. So if firstName, middleName, and lastName, had the values “John”, “Fitzgerald”, and “Kennedy”, the expression’s value would be JFK”. Alternatively, if firstName, middleName,…
Read More