practiceproblem4.docVIP

  • 8
  • 0
  • 约1.83千字
  • 约 1页
  • 2017-06-05 发布于天津
  • 举报
practiceproblem4

CS 500 Practice Problem 4 File I/O and Singletons Create a Java program named Singletons.java. Use VIM to edit your program following the specifications below. Problem Description: Consider this data sequence: fish bird reptile reptile bird bird bird mammal fish Lets define a SINGLETON to be a data?element? that is not repeated immediately before or after itself in the sequence. So, here there are four SINGLETONs that appear in the data stream: The first appearance of “fish” The first appearance of “bird” “mammal” And the second appearance of “fish” Write a program that reads a single

文档评论(0)

1亿VIP精品文档

相关文档