write a Java program using buffer reader to input 5 words and print only those which starts with vowels
Answers
Answered by
0
Answer:
import java.io.*;
public class Example{
public static void main(String args[] throws Exception)
{
FileReader f = new FileReader("filelocation");
BufferedReader b = new BufferedReader(f);
int i ;
while((i = b.read()) != -1){
System.out.println((char) i);
}
b.close();
f.close();
Similar questions