Wolfram Language Fast Introduction for Programmers
Get Started »

Managing Sessions

Unlike the Wolfram Language, Java is a compiled language and does not allow the kind of interactive coding and testing described here.

% stands for the most recent result; %n stands for the result Out[n].

% works similar to _ in the Python shell, though you cannot specify exact line numbers with the default shell.

Use CMD+L to copy down the most recent input to the current input.

End a line with ; to make it print no output:

In[1]:=
X

% still works:

In[2]:=
X
Out[2]=

Use Short to get a short summary of output:

In[1]:=
X
Out[1]=

Use //function to apply a function at the end:

In[2]:=
X
Out[2]=

If you need to abort a computation, choose the Abort Evaluation menu item, or press CMD + . (Mac) or ALT + . (other).