Advertisement
Jordimario

ClassePrincipale

Aug 31st, 2019
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.74 KB | None | 0 0
  1. import java.io.*;
  2. public class ClassePrincipale
  3. {
  4.     InputStreamReader culo=new InputStreamReader(System.in);
  5.     BufferedReader sedere=new BufferedReader(culo);
  6.        public int x;
  7.        public float j;
  8.        public String y;
  9.        public float Virgola(){
  10.         try{
  11.             j=Float.valueOf(sedere.readLine()).floatValue();
  12.         }
  13.         catch(Exception e){};
  14.         return j;
  15.         }
  16.        
  17.     public int Interi(){
  18.         try{
  19.             x=Integer.valueOf(sedere.readLine()).intValue();
  20.         }
  21.         catch(Exception e){};
  22.         return x;
  23.     }
  24.    
  25.     public String Stringa(){
  26.         try{
  27.             y=sedere.readLine();
  28.         }
  29.         catch(Exception e){};
  30.         return y;
  31.     }
  32.    
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement