```package com.thealgorithms.maths;

public record ADTFraction(int numerator, int denominator) {

/**
* Initializes a newly created {@code ADTFraction} object so that it represents
* a fraction with the {@code numerator} and {@code denominator} provided as arguments.
*
* @param numerator   The fraction numerator
* @param denominator The fraction denominator
*/
if (denominator == 0) {
throw new IllegalArgumentException("Denominator cannot be 0");
}
}

/**
*
* @return A new {@code ADTFraction} containing the result of the operation
*/
var numerator = this.denominator * fraction.numerator + this.numerator * fraction.denominator;
var denominator = this.denominator * fraction.denominator;

}

/**
* Multiply fraction by a number.
*
* @param number the number to multiply
* @return A new {@code ADTFraction} containing the result of the operation
*/
}

/**
* Multiply two fractions.
*
* @param fraction the {@code ADTFraction} to multiply
* @return A new {@code ADTFraction} containing the result of the operation
*/
var numerator = this.numerator * fraction.numerator;
var denominator = this.denominator * fraction.denominator;
}

/**
* Generates the reciprocal of the fraction.
*
* @return A new {@code ADTFraction} with the {@code numerator} and {@code denominator} switched
*/
}

/**
* Calculates the result of the fraction.
*
* @return The numerical result of the division between {@code numerator} and {@code denominator}
*/
public float value() {
return (float) this.numerator / this.denominator;
}

/**
* Returns a string representation of this {@code ADTFraction} in the format
* {@code numerator}/{@code denominator}.
*
* @return A string representation of this {@code ADTFraction}
*/
@Override
public String toString() {
return String.format("%d/%d", this.numerator, this.denominator);
}
}
```  