Search Results

Showing results 1 to 6 of 6
Search took 0.01 seconds.
Search: Posts Made By: chili5 ; Forum: Java and child forums
Forum: Java Apr 17th, 2009
Replies: 9
Views: 549
Posted By chili5
From a quick look:


pw.println(filenm); // got a java.lang.NullPointerException here


You have never initialized a pw object. pw is set to null. Now you are initializing pw in...
Forum: Java Mar 6th, 2009
Replies: 19
Views: 2,857
Posted By chili5
Why use a stack? You could just loop through the string and print each char in reverse order.

But still think using the built in StringBuilder is better.


for (int i=s.length()-1;i>=0;i--) {
...
Forum: Java Mar 4th, 2009
Replies: 19
Views: 2,857
Posted By chili5
Either use a loop like others are saying or you can take the lazy way out:


String sText = "bracket";
String sReverse = new StringBuilder(sText).reverse().toString();...
Forum: Java Jan 22nd, 2009
Replies: 11
Views: 2,633
Posted By chili5
I used to use the buffered reader in September but I started to find when in my contests that the Scanner is better.

Since I can read individual elements at a time, I don't have to worry about...
Forum: Java Dec 31st, 2008
Replies: 2
Views: 364
Posted By chili5
That's an amazing list of tutorials. :D Thanks man. :D
Forum: Java Dec 31st, 2008
Replies: 5
Views: 491
Posted By chili5
What do you mean?

There isn't multiple inheritance in Java. It's a single inheritance only language. :)
Showing results 1 to 6 of 6

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC