What is the argument Object obj in this method used for? In the method, you are creating a String, printing it to System.out and writing it to yet another out. None of these operations use the argument obj anywhere.
What's the output you are getting, and what were you expecting?
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop