Forum: Java Apr 17th, 2009 |
| Replies: 9 Views: 549 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 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 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 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 That's an amazing list of tutorials. :D Thanks man. :D |
Forum: Java Dec 31st, 2008 |
| Replies: 5 Views: 491 What do you mean?
There isn't multiple inheritance in Java. It's a single inheritance only language. :) |