Search found 2 matches

by jpaul
Sat May 02, 2009 7:02 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 304104

Re: 100 Time Limit Exceeded

Scanner is a practical class for read data from a stream o string ... but it slower . Scanner use regular expressions for match the elements in the input. The regular expression is powerful way for matching strings and another streams, but this tecnology is very slower. If you know how is the input...
by jpaul
Sat May 02, 2009 6:42 am
Forum: Java
Topic: How to I disply only 3 numbers after dot of double?
Replies: 3
Views: 4408

To format a double...

Hi! You can use DecimalFormat for create someone format for the floating point numbers, as double, but you don't need that... You should use the next form for print data, I test that is the faster form for print data in Java. PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out)); // ...

Go to advanced search