This discussion is archived
5 Replies Latest reply: Jan 29, 2013 1:04 AM by Kayaman RSS

Java object printing

jkvel Newbie
Currently Being Moderated
Hi,

I am printing a java object for e.g:

Object o="{27-01-1989}";
     System.out.println("date="+o);
          
In this snippet,it prints "date={27-01-1989}"

For this how to ignore these curly braces.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points