daily pastebin goal
29%
SHARE
TWEET

Untitled

a guest Mar 21st, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.io.*;
  2. import java.util.Scanner;
  3.  
  4. class main {
  5.     public static void main(String[] args) {
  6.        
  7.         int i;
  8.         try {
  9.             Scanner scanner = new Scanner(new File("data.ini"));
  10.            
  11.             while (scanner.hasNextInt())
  12.             {
  13.                 i = scanner.nextInt();
  14.                 System.out.println(i);
  15.             }
  16.         }
  17.         catch (FileNotFoundException e) {
  18.        
  19.         }
  20.     }
  21. }
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