// Reads a file containing an email message and outputs // each line with a > in front of it. import java.io.*; import java.util.*; public class QuoteMessage { public static void main(String[] args) throws FileNotFoundException { Scanner input = new Scanner(new File("message.txt")); // nextLine, hasNextLine while (input.hasNextLine()) { System.out.print("> "); String line = input.nextLine(); System.out.println(line); } } }