forked from JavaTX/JavaCompilerCore
13 lines
287 B
Java
Executable File
13 lines
287 B
Java
Executable File
public class Assert
|
|
{
|
|
div( divident, divisor )
|
|
{
|
|
assert divisor != 0 : "Oh bitte keine Zahl durch null teilen.";
|
|
return divident/divisor;
|
|
}
|
|
public static void main( args )
|
|
{
|
|
println( "Quotient ist " + div(10, 2) );
|
|
println( "Quotient ist " + div(10, 0) );
|
|
}
|
|
} |