inge ich das Programm zur Ausführung? =====
Ganz so schnell gehts nun doch nicht. Noch liegt uns das ... ren (to compile).
Zur Ausführung brauchen wir also:
- einen Java Compiler - zur Wandlung von Sour... n statt dessen nur die *.class Datei (Byte Code), so brauchen wir keinen Compiler mehr sondern nur noc... t neben dem Compiler auch gleich noch eine JRE, also alle Komponenten um unser Java Programm später au
;
tmp=tmp/2;
println( oldTmp + " is even. So i take 1/2: " + tmp );
}else{ // so must be Odd then...
int oldTmp=tmp;
tmp=tmp*3+1;
println( oldTmp + " is odd. So i make 3n+1: " + tmp );
}
}
return tmp;
}... %2!=0){
return false; // there is a remainder. So it must be ODD.
}else{
return true; // there
h) and stores Data in public Class Variables
* so any following Method can access Data. Also Calculates and Stores the Middle of the
* X-Axis for c... rawBrickAt(int X, int Y) {
/*
* Draws (and also adds) a Brick at X,Y using the given Constants
erything
* after the decimal point completly. So for example: casting a "2.9" will become "2".
... s anything after the decimal point.
*
* So by adding 0.5 to 2.9 it becomes 3.4, casting to i
eld1,
* then skipping the next field, and so on.
*/
while( frontIsClear() ) {
putBeepe... then placing a beeper on the next field, and so on.
*/
while( frontIsClear() ) {
move();
ton, the displayed line will
* track the mouse, so that you might see the
* following picture:
* ... this program may seem quite powerful, it
* is also simple to implement. The entire program
* requi