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.close()) { //line n1
isr.skip(2);
i = isr.read ();
c = (char) i;
System.out.print(c);
}
} catch (Exception e) {
e.printStackTrace();
}
}
What is the result?
maslac
Highly Voted 3 years, 7 months agosteefaand
Most Recent 9 months, 3 weeks agoduydn
1 year, 2 months agoWilsonKKerll
2 years, 8 months agojduarte
3 years, 10 months agojduarte
3 years, 10 months ago