• Post Reply Bookmark Topic Watch Topic
  • New Topic

Print a string  RSS feed

 
Feyna Reendrina
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to print just only one single string...

how can i do it??

must i write it in the file first??

thx
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm going to try to get you to do all the work here ... Guessing you want to write to the console ... Look into the System class in the JavaDoc. It has a public variable called "out". Notice the type of the out variable: PrintStream. Click on that and see if it has methods to do what you need.

Start here: http://java.sun.com/j2se/1.5.0/docs/api/index.html
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!