Usando Throws (1)
public static void main (String args[])
throws java.io.IOException
while (System.in.read() != -1)
System.out.println(“Caracteres: ”+count);
Count.java:4: Exception java.io.IOException must
be caught, or it must be declared in the throws
while (System.in.read() != -1)
public static void main (String args[])
throws java.io.IOException
while (System.in.read() != -1)
System.out.println(“Caracteres: ”+count);