Given that course.txt is accessible and contains:
Course : : Java -
and given the code fragment:
public static void main (String[ ] args) {
int i;
char c;
try (FileInputStream fis = new FileInputStream ("course.txt");
InputStreamReader isr = new InputStreamReader(fis);) {
while (isr.ready()) { //line n1
isr.skip(2);
i = isr.read ();
c = (char) i;
System.out.print(c);
}
} catch (Exception e) {
e.printStackTrace();
}
}
What is the result?
adnano1234
Highly Voted 4 years, 6 months agoDestroyer
Highly Voted 4 years, 7 months agoasdfjhfgjuaDCV
Most Recent 4 months, 3 weeks agor1muka5
1 year, 5 months agoM_Jawad
4 years, 6 months ago