public CompInfo(String[] tokens)
	{
		if (tokens[0].equals("$A")) {
			regNumber = tokens[1];
			number = tokens[2];
			transNumber = Integer.parseInt(tokens[3]);
			firstName = tokens[4];
			lastName = tokens[5];
			nationality = tokens[6];
			classId = Integer.parseInt(tokens[7]);
		} else if (tokens[0].equals("$COMP")) {
			regNumber = tokens[1];
			number = tokens[2];
			classId = Integer.parseInt(tokens[3]);
			firstName = tokens[4];
			lastName = tokens[5];
			nationality = tokens[6];
			addInfo = tokens[7];
		}
	}