lecture_11.ppt-illinoisinstituteoftechnology.pptVIP

  • 12
  • 0
  • 约1.39万字
  • 约 33页
  • 2016-10-06 发布于天津
  • 举报
lecture_11.ppt-illinoisinstituteoftechnology

* * * * Useful PrintWriter Methods The argument can be any primitive data type (except byte or short), a char array, or an object. See Example 11.15 WriteGradeFile.java Return value Method name and argument list void print( dataType argument ) writes a String representation of the argument to an output stream void println( dataType argument ) writes a String representation of the argument to an output stream followed by a newline. void close( ) releases the resources associated with the PrintWriter object * Example: Writing to a Text File Suppose we want to write a String aString to a

文档评论(0)

1亿VIP精品文档

相关文档