Possible Duplicate:
What is the reason behind "non-static method cannot be referenced from a static context"?
public class Sorting
{
 public int[] Sort(int[] input)
 {
 //sorting algorithm
    return answer
 }
 public static void main(String[] args)
 {
 System.out.println(Arrays.toString(Sort(array to be sorted)));
 }
}
I get the non static method cannot be referenced from a static context, I forget how to overcome this as it's been a while since I have used java.
I need to create the sorting method and test it in the same file.