title: Can toString() method take an argument in Java?
body: <p>I tested this in eclipse, and it didn't give me any exceptions. However I wasn't able to specify the value x. Can toString() take an argument (I know that my example below isn't the greatest)?</p>
  
  <p>Test.java</p>
  
  <pre><code>public class Test {
  
      public String toString(int x){
          return "Hey "+ x;
      }
  
  }
  </code></pre>
  
  <p>Main.java</p>
  
  <pre><code>public class Main {
        public static void main(String[] args){
  
            System.out.println(new Test());
  
  
        }
  }
  </code></pre>