Code and Memory Error(I'm back) My apologies.

Well I'm back. Sorry about this. Here is my code, there is a problem:

See bottom for code.

Two errors, both pointing towards the subtraction symbols. It reckons a class is required, and that it found a value. (I'm using Textpad)

I also got a worrying comment, saying: "The system is out of resources. Consult the following stack trace for details.

java.lang.OutOfMemoryError

double distance = Math.sqrt((xtwo - xone)(2) + (yone - ytwo)(2));

[513 byte] By [WayneOfWexa] at [2007-11-27 3:43:26]
# 1
Please keep the topic to one thread, I already answered this there: http://forum.java.sun.com/thread.jspa?threadID=5170183
hunter9000a at 2007-7-12 8:47:05 > top of Java-index,Java Essentials,New To Java...
# 2
Are you trying it with simple values?Also, check your JVM resource settings for how much memory it is using.
kdajania at 2007-7-12 8:47:05 > top of Java-index,Java Essentials,New To Java...