Hello friend, i can`t do the exercise I/O Stream, someone can help me, please.
i do the following:
public int StreamToUpper(int c) throws IOException {
BufferedReader buff = new BufferedReader(new InputStreamReader(super.in));
StringBuilder str = new StringBuilder();
String line = null;
while((line=buff.readLine())!=null) {
datos= Integer.valueOf(line);
}
return datos;
}
public int getdatos(){
return datos;
}
public int read() throws IOException {
int c;
while ((c = in.read())!=-1)
datos=StreamToUpper(c);
return datos;
}
}
_________________________________________________________________
¡Quítate unos clics! Ahora, Internet Explorer 8 tiene todo lo que te gusta de
Windows Live ¡Consíguelo gratis!
http://ie8.msn.com/microsoft/internet-explorer-8/es-es/ie8.aspx
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---