@@ -0,0 +1,389 @@
+%0Apublic class Variable implements Comparable %7B%0A%09int index;%0A%09double info;%0A%09double gain;%0A%09%0A%09public Variable(int index) %7B%0A%09%09this.index = index;%0A%09%7D%0A%09%0A%09public int compareTo(Object o) %7B%0A%09%09Variable other = (Variable)o;%0A%09%09if (this.gain == other.gain) %7B%0A%09%09%09return 0;%0A%09%09%7D%0A%09%09if (this.gain %3E other.gain) %7B%0A%09%09%09return 1;%0A%09%09%7D%0A%09%09return -1;%0A%09%7D%0A%09%0A%09public String toString() %7B%0A%09%09return this.index + %22 %22;%0A%09%7D%0A%7D%0A

Create Variable.java