Uncategorized Print Only Numbers From String Java / How to get bookmarks from firefox using java.i want to get bookmarks from firefox and store them into database.i want some sample code. As i said before, this is not the only way to format floating point numbers in java, you can use right from the top formatter class, which provides format() method similar to string's format() method.