Java AtomicInteger doubleValue() methodThe doubleValue() method of Java AtomicInteger class returns the value of this AtomicInteger as a double after a widening primitive conversion. SyntaxReturnIt returns the double value of a given AtomicInteger. Example 1Test it NowOutput: the double value of integer: 0.0 Example 2Test it NowOutput: the double value of integer: 10.0 Example 3Test it NowOutput: the double value of integer: 100.0 Example 4Test it NowOutput: the double value of integer: -10.0 Example 5Test it NowOutput: the double value of integer: 4.0 Next TopicJava AtomicInteger |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India