Graderpractice for programmers

231322 Java U3 - Types & Values

Awaiting submission
Read a String Print its length
Print its length + 5
Print its length * 5
Can you do it without any String variables?
Awaiting submission
Read 2 Strings
Print the length of each String
Print the total length
Can you do it without any String variables?
Awaiting submission
Read a String
If its length is greater than 5, print true
Else print false
...without an if statement
Awaiting submission
Read 2 Strings
If both are longer than 5, print true
Else print false
...without an if statement
Awaiting submission
Read in a String
Convert it to boolean
Negate it
Print your answer

Hint: Boolean.parseBoolean()
Awaiting submission
Read in a String
Convert to int
Multiply by 10
Print its *length*

Hints: Integer.parseInt() and String.valueOf()