commit
f9283f1dd2
|
|
@ -20,7 +20,14 @@ class MyIO {
|
|||
out.print(x);
|
||||
}catch(UnsupportedEncodingException e){ System.out.println("Erro: charset invalido"); }
|
||||
}
|
||||
|
||||
|
||||
public static void print(float x){
|
||||
try {
|
||||
PrintStream out = new PrintStream(System.out, true, charset);
|
||||
out.print(x);
|
||||
}catch(UnsupportedEncodingException e){ System.out.println("Erro: charset invalido"); }
|
||||
}
|
||||
|
||||
public static void print(double x){
|
||||
try {
|
||||
PrintStream out = new PrintStream(System.out, true, charset);
|
||||
|
|
@ -59,6 +66,13 @@ class MyIO {
|
|||
}catch(UnsupportedEncodingException e){ System.out.println("Erro: charset invalido"); }
|
||||
}
|
||||
|
||||
public static void println(float x){
|
||||
try {
|
||||
PrintStream out = new PrintStream(System.out, true, charset);
|
||||
out.println(x);
|
||||
}catch(UnsupportedEncodingException e){ System.out.println("Erro: charset invalido"); }
|
||||
}
|
||||
|
||||
public static void println(double x){
|
||||
try {
|
||||
PrintStream out = new PrintStream(System.out, true, charset);
|
||||
|
|
|
|||
Loading…
Reference in New Issue