public class Fraction {

	final private int denominator;
	final private int numerator;

	public Fraction(int integerValue) {	
		this.numerator = integerValue;
		this.denominator = 1;
	}

	public Fraction(int numerator, int denominator) {
		this.numerator = numerator;
		this.denominator = denominator;
	}

	public Fraction plus(Fraction that) {
		return new Fraction(this.numerator + that.numerator,this.denominator);
	}

	public int intValue() {
		return this.numerator/this.denominator;
	}

	public int getNumerator() {
		return this.numerator;
	}

	public int getDenominator() {
		return this.denominator;
	}
}

public class Fraction {
	private final int numerator;
	private final int denominator;

	public Fraction(int integerValue) {	
		this.numerator = integerValue;
		this.denominator = 1;
	}

	public Fraction(int numerator, int denominator) {
		this.numerator = numerator;
		this.denominator = denominator;
	}

	public Fraction plus(Fraction that) {
		return new Fraction(numerator + that.numerator,denominator);
	}

	public int intValue() {
		return numerator/denominator;
	}

	public int getNumerator() {
		return numerator;
	}

	public int getDenominator() {
		return denominator;
	}
}

reorganize code