wood burning stoves
The moose likes Beginning Java and the fly likes java quiz Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "java quiz" Watch "java quiz" New topic

java quiz

Ade Fapetu

Joined: Oct 09, 2005
Posts: 6
write a literal representing long integer value 12 billion
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24190


Welcome to JavaRanch!

Ummm... Not sure why this would have you stumped. Do you not know how many zeroes are in a billion (assuming you're using the same definition of "billion" as the questioner?) You mention that it's a long literal, and the only even vaguely tricky part -- gotta remember that 'L' at the end.

[Jess in Action][AskingGoodQuestions]
Have you checked out Aspose?
subject: java quiz
It's not a secret anymore!