Posts Tagged ‘Java’
Suppose your name was Alan Turing. Write a statement that would print your last name, followed by a comma, followed by a space and your first name.
LANGUAGE: JAVA CHALLENGE: Suppose your name was Alan Turing. Write a statement that would print your last name, followed by a comma, followed by a space and your first name.
Read MoreWrite a complete main method that prints Hello, world to the screen.
LANGUAGE: JAVA CHALLENGE: Write a complete main method that prints Hello, world to the screen.
Read MoreWrite a statement that prints Hello, world to the screen.
LANGUAGE: JAVA CHALLENGE: Write a statement that prints Hello, world to the screen.
Read MoreA British logician, whose last name was the founder of Computer Science.
LANGUAGE: JAVA CHALLENGE: A British logician, whose last name was the founder of Computer Science.
Read MoreWrite a conditional that decreases the variable shelfLife by 4 if the variable outsideTemperature is greater than 90.
LANGUAGE: JAVA CHALLENGE: Write a conditional that decreases the variable shelfLife by 4 if the variable outsideTemperature is greater than 90.
Read MoreGiven a String variable named sentence that has been initialized , write an expression whose value is the the very last character in the String referred to by sentence.
LANGUAGE: JAVA CHALLENGE: Given a String variable named sentence that has been initialized , write an expression whose value is the the very last character in the String referred to by sentence.
Read MoreWrite an expression that whose value is the fifth character of the String name.
LANGUAGE: JAVA CHALLENGE: Write an expression that whose value is the fifth character of the String name.
Read MoreAssume that name is a variable of type String that has been assigned a value. Write an expression whose value is the second character of the value of name. So if the value of name were “Smith” the expression’s value would be ‘m’.
LANGUAGE: JAVA CHALLENGE: Assume that name is a variable of type String that has been assigned a value. Write an expression whose value is the second character of the value of name. So if the value of name were “Smith” the expression’s value would be ‘m’.
Read MoreAssume that name is a variable of type String that has been assigned a value. Write an expression whose value is the first character of the value of name. So if the value of name were “Smith” the expression’s value would be ‘S’.
LANGUAGE: JAVA CHALLENGE: Assume that name is a variable of type String that has been assigned a value. Write an expression whose value is the first character of the value of name. So if the value of name were “Smith” the expression’s value would be ‘S’.
Read MoreGiven the String variable str, write an expression that evaluates to the character at index 0 of str.
LANGUAGE: JAVA CHALLENGE: Given the String variable str, write an expression that evaluates to the character at index 0 of str.
Read MoreWrite an expression whose value is the number of characters in the following String : “CRAZY!\n\\\t\\\\\\\\\\n. . . .\\ \\\r\007’\\’\”TOOMUCH!”
LANGUAGE: JAVA CHALLENGE: Write an expression whose value is the number of characters in the following String : “CRAZY!\n\\\t\\\\\\\\\\n. . . .\\ \\\r\007’\\’\”TOOMUCH!” Suggestion: copy/paste the above String into your code– it’s too crazy to try to copy it by typing.
Read MoreGiven a String variable named sentence that has been initialized, write an expression whose value is the index of the very last character in the String referred to by sentence.
LANGUAGE: JAVA CHALLENGE: Given a String variable named sentence that has been initialized, write an expression whose value is the index of the very last character in the String referred to by sentence.
Read More