All pastes #640694 Raw Edit

Anonymous

public java v1 · immutable
#640694 ·published 2007-07-31 16:15 UTC
rendered paste body
import java.util.*;import java.io.*;class Unit {}class Asterix {	public static void main(String[] args) {		try {				File f = new File("asterix.input");			Scanner sc = new Scanner(f);			int c;			int i,j;			if ((c = sc.nextInt()) != 0) {				ArrayList array = new ArrayList(c);				for (i = 0; i < c; i++) {					Unit tmp = new Unit();					array.add(i, tmp); //petaei warning edw				}			}		} catch (IOException e) {			System.out.println("Error Messsage: " + e.getMessage());		}	}}