


class Foo {

	public Foo(int x, String y) throws InvalidDataException,AnotherException {
		if (x < 0 || x > 10) {
			throw new InvalidDataException("integer must be between 0 and 10");
		}

		if (y == null || y.equals("")) {
			throw new AnotherException("string must be non-null and non-empty");
		}
	}

	public void printHello() {
		System.out.println("hello");
	}
	

} // end of class
