bruimafia

Untitled

May 18th, 2021
561
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class Program {
  2.  
  3.     public static int max=Integer.MAX_VALUE/2;
  4.     public static void main(String[] args)throws Exception{
  5.  
  6. /*        FileReader fr= new FileReader("tp_lab2.txt");
  7. //while(c != -1){}
  8.         int c;
  9.         StringBuffer strBuffer = new StringBuffer();
  10.  
  11.         c = fr.read();
  12.  
  13.         while (c != 10){
  14.             strBuffer.append((char)c);
  15.             c = fr.read();
  16.         }
  17.         String str = strBuffer.toString();
  18.         System.out.println(str);
  19.         int s = Integer.parseInt(str);
  20.         System.out.println(s);
  21.         Graph graph = new Graph(s);
  22.  
RAW Paste Data