Tut07_2009 - EE3206/EE5805 Java Programming and Applications Tutorial 7 Manipulating Strings and Text Files 1 CSV(comma separated value is one of

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
EE3206/EE5805 Java Programming and Applications Tutorial 7 – Manipulating Strings and Text Files 1. CSV (comma separated value) is one of the common formats used to represent a sequence of data, where each single record is delimited by a comma. Write a program to read a row from a CSV file and reproduce a transpose. Use the file row.csv ” to test your program. 2. Write a program that reads a file line by line and output these lines to another file in reverse order. That means the last line of the original file will be outputted as the first line in the new file. Use the file “ I Have a Dream Speech.txt ” to test your program. 3. Complete the function of the class WordCounter shown in Code 1. The main method has already been done for you. Basically it takes a filename as argument and performs counting operations on the file. You are then required to implement the three counting methods. Use the file “ I Have a Dream Speech.txt ” or the reversed output above to check against your program. (a)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/20/2010 for the course ELECTRONIC EE3206 taught by Professor Tingchiwang during the Spring '10 term at École Normale Supérieure.

Page1 / 3

Tut07_2009 - EE3206/EE5805 Java Programming and Applications Tutorial 7 Manipulating Strings and Text Files 1 CSV(comma separated value is one of

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online