Writing a computer game in java that has graphics, motion, and sound effects

Word and line count. Modify WordCount.java so that reads in text from standard input and prints out the number of characters, words, and lines in the text.

Rainfall problem. Write a program Rainfall.java that reads in nonnegative integers [representing rainfall] one at a time until 999999 is entered, and then prints out the average of value [not including 999999].

Remove duplicates. Write a program Duplicates.java that reads in a sequence of integers and prints back out the integers, except that it removes repeated values if they appear consecutively. For example, if the input is 1 2 2 1 5 1 1 7 7 7 7 1 1, your program should print out 1 2 1 5 1 7 1.

Run length encoding. Write a program RunLengthEncoder.java that encodes a binary input using run length encoding. Write a program RunLengthDecoder.java that decodes a run length encoded message.

Head and tail. Write programs Head.java and Tail.java that take an integer command line input N and print out the first or last N lines of the given file. [Print the whole file if it consists of

Chủ Đề