Posts by Usuário Sedento • 79 points
2 posts
-
0
votes1
answer58
viewsQ: split(" ") in String " Java Essential " generates 3 tokens. Why?
The idea was to separate words from whitespace. It follows the following code. String s = " Java Essencial "; String[] ss = s.split(" "); for (int i = 0; i < ss.length; i++) {…
javaasked Usuário Sedento 79 -
1
votes2
answers327
viewsQ: How many times will the x variable be created at the end of the loop? Why?
In the following loop, how many times the variable x will be created at the end of loop? Why? for (int i = 0; < 10; i++) { double x = i + 10; System.out.println(x); }…