SHARE
TWEET

Untitled

a guest Dec 16th, 2018 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. File g = new File("C:/Users/angd6/Downloads/spannbreite.txt");
  2.     b = new int[10000];
  3.  
  4.     try {
  5.         Scanner sc2 = new Scanner (g);
  6.         max = 0;
  7.     for(int i = 0; i <= b.length-1; i++) {
  8.         b[i] = sc2.nextInt();
  9.  
  10.     }for (int k = 0; k <= b.length-1; k++) {
  11.         for(int j = b.length -1; j == k; j--) {
  12.             c = new int[1000];  
  13.             c[k] = j;  
  14.         if(max <= c[k]) {
  15.             max = c[k];
  16.         }
  17.     }}
  18.     sc2.close();
  19.     }catch(FileNotFoundException e) {
  20.         System.out.println("Datei nicht vorhanden");
  21.  
  22.     }return c[c.length-1];
  23. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top