Forbidden
This annotation is used to mark methods from the standard library, that are forbidden to be used by the student in order to implement the annotated method.
The following example shows how to use this annotation:
public static int max(int a, int b) {
if (a > b) {
return a;
} else {
return b;
}
}
Content copied to clipboard
Alternatively the entire class or package can be forbidden:
public static int max(int a, int b) {
if (a > b) {
return a;
} else {
return b;
}
}
Content copied to clipboard