Frequently Asked Questions |
The Founders and Foundations of Computer Science - Video and notes of talks given by a few of the most significant figures in Computer Science.
ML
Debugging programs - Source level debugging in Poly/ML
Pasting
Do not use the right button click to Paste in immediate execution mode. The pasted text is ignored.
Use the menu Edit | Paste instead.
Java
System.out.print("Hello World");
in C++ it would be:
cout << "Hello World";
The simplest is to use:
System.out.print( expr );
where expr is a string, int, float, etc. expression. To output several expressions in one output statement use concatenation (i.e. the + operator), for example to output the value of IP and op variables seperated by a tab and terminated by a new line use:
System.out.print(IP + "\t" + op + "\n");
System.out.println();
or by outputting a "\n".
x = Math.abs(x);