Posts by Edrol Redop • 183 points
4 posts
-
9
votes1
answer397
viewsA: Java Priorityqueue Comparator
I won’t know much about details, but here goes: The method System.out.println() uses the method toString() of the Abstractcollection class and this, in turn, uses an Iterator (which is obtained by…
-
0
votes2
answers1174
viewsA: Format result of integer division
Just to add something that was not mentioned in the other answers, you could use the unary coercion operator (cast) to get the result with decimals without creating a specific variable.…
-
2
votes1
answer996
viewsQ: Division by zero into double = Infinity result
I was learning about error handling in the Java language and did tests with the sample code of the class in question. In a test I added (double) in the final operation to make the result more…
-
1
votes1
answer457
viewsQ: Error trying to use Arraylist methods (symbol not recognized)
I just can’t use any method of the Arraylist class (always gives compilation error) and I have no idea why. Am I making some syntax error? I didn’t get any answers searching the internet. I put…