Computer Applications
State the method that
(a) converts a string to a primitive float data type.
(b) determines if the specified character is an uppercase character.
Java Library Classes
6 Likes
Answer
(a) Float.parseFloat()
(b) Character.isUpperCase()
Answered By
2 Likes
Related Questions
The following code has some error(s). Rewrite the correct code and underlining all the corrections made.
integer counter = 0; i = 10; num; for (num = i; num >= 1; num--); { If i % num = 0 { counter = counter + 1; } }Rewrite the following program segment using while instead of for loop.
int f = 1, i; for(i = 1; i <= 5 ; i++) { f *= i; System.out.println(f); }Write the Java statement for the following mathematical expression:
Give the output of the following expression, when a = 6.
a += ++a + a++ + a-- + a-- + --a + ++a