Computer Science, asked by asthanwesha, 8 months ago

write a Java program using buffer reader to input 5 words and print only those which starts with vowels

Answers

Answered by sharma20anil8
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