title: Multiplying two objects
body: <p>Hey so I will do my best at explaining this (and will have to change some code sorry if it looks weird) so I currently have:</p>
  
  <pre><code>public Job(String name, int tickets, double wage) {
      this.name = name;
      this.tickets = tickets;
      this.wage = wage;
  </code></pre>
  
  <p>&amp; and getters and setters for these and also making a list here:</p>
  
  <pre><code>Job Peter = new Job (name: "Peter",  tickets: 100, wage: 1.55);
          System.out.println(Peter);
  </code></pre>
  
  <p>So my issue is that lets say the <strong>total wage</strong> is calculated by <strong>tickets * wage</strong> how do I go about doing this by automation.</p>
  
  <blockquote>
    <p><strong><em>I can do this, however want a simpler method where it is automated so    I can just for example Peter.getTotalWage</em></strong></p>
  
  <pre><code>System.out.println(Peter.getTickets() * (Peter.getWage()));
  </code></pre>
  </blockquote>
  
  <p>My issue is when it comes to multiplying int with double, I've tried something like this but can't seem to get it working as I know it is wrong (probably completely wrong to be honest):</p>
  
  <pre><code>}
  
  public double totalWage(int tickets, double wage) {
      int i = tickets;
      Double d2=Double.valueOf(i);
      double sum = d2 * wage;
  
      return sum;
  }
  </code></pre>
  
  <p>Right now I have two classes.
  If you can help us identify how to go about doing this that'll be great!</p>