Skip to content
Snippets Groups Projects
Commit 7f6cee4e authored by Goik Martin's avatar Goik Martin
Browse files

Example file illustrating class usage

parent c9486d35
No related branches found
No related tags found
No related merge requests found
package de.hdm_stuttgart.mi.sd1.aufgabe2;
/**
* Diese Klasse dient nur als Beispiel und muss daher auch nicht geändert werden.
*/
public class Beispiel {
public static void main(String[] args) {
final MaexleWurf
w1 = new MaexleWurf(1, 2) // Ein Mäxchen, höchster möglicher Wert.
,w2 = new MaexleWurf(1, 4) // Ein »normaler« Wurf.
,w3 = new MaexleWurf(2,2); //
System.out.println(w1.compareTo(w2));
System.out.println(w3.compareTo(w1));
System.out.println(w3.compareTo(w3));
}
}
package de.hdm_stuttgart.mi.sd1.aufgabe2;
/**
* Diese Klasse dient nur als Beispiel und muss daher auch nicht geändert werden.
*/
public class Beispiel {
public static void main(String[] args) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment