In computing, memoization or memoisation
is an optimization technique used primarily
to speed up computer programs by storing
the results of expensive function calls and
returning the cached result when the same
inputs occur again.
— wikipedia
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Obviously for educative purposes only. | |
Furthermore, this DOESN'T activate BabelEdit permanently. | |
If you like the software, buy it, the devs deserve it. | |
Since I have no money to buy it, I discovered a workaround for unlimited trials. | |
It's quite a annoying workaround, but ... it works! | |
Firstly go to "c:\windows\system32\drivers\etc\" and open the "hosts" file in Notepad/Notepad++/VSCode/Sublime/Atom/whatever as admin (if you don't open it as admin, it won't let you save it). | |
Add this line at the end of the file: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @author werner, braun (IFIS) | |
*/ | |
public class MyIntListElement { | |
private int key; | |
protected MyIntListElement next; | |
public MyIntListElement(int key, MyIntListElement next) { | |
this.key = key; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public abstract class Geraet { | |
protected boolean istEingeschaltet; | |
private String hersteller; | |
public Geraet(String hersteller) { | |
this.hersteller = hersteller; | |
} | |
public String gibHersteller() { | |
return hersteller; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Ein Wuerfel, der aus Gummi besteht und eine bestimmte Form hat. | |
* Er verhaelt sich auf bestimmte Art und Weise wenn er gedrueckt wird. | |
*/ | |
public class Gummiwuerfel implements Produkt { | |
private double hoehe, laenge, breite; | |
private double gesamtPresskraft; | |
private int pressvorgaenge = 0; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Angestellter extends Person { | |
private double gehalt; | |
private String abteilung; | |
public Angestellter(String name, String vorname) { | |
super(name, vorname); | |
} | |
public double getGehalt() { | |
return gehalt; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Klasse zur Modellierung eines Erwachsenen | |
*/ | |
public class Erwachsener extends Patient { | |
public Erwachsener(String name, int krankheitsklasse) { | |
super(name,krankheitsklasse); | |
} | |
public double getVerguetung() { | |
return super.getVerguetung(); |