title: Duplicate Local Variable Passe + The Operator / is undefined for the argument type(s) String,Int
body: <p>I'm a newbie at Java and I'm trying to do a tool to calculate a few stuff, I'm trying to setup a "GUI" for it but I'm having two errors:</p>
  
  <p>Duplicate local variable passe and - and -The operator (* and /) is undefined for the argument types String/Int</p>
  
  <p>What I've done so far:</p>
  
  <pre><code>    String total, lgnd, epic, rare, unc, passe, epicv, rarev, passev, money, money2, totalv, legendaryv, uncommonv;
  
  
      String lgnd = JOptionPane.showInputDialog("Quantas skins lendarias/douradas voce tem?");
  
      String epic = JOptionPane.showInputDialog("Quantas skins epicas/roxas voce tem?");
  
      String rare = JOptionPane.showInputDialog("Quantas skins raras/azuis voce tem?");
  
      String unc = JOptionPane.showInputDialog("Quantas skins incomuns/verdes voce tem?");
  
      String passe = JOptionPane.showInputDialog("Voce tem quantos passes de batalha comprados?");        
  
      Integer.parseInt(lgnd);
      Integer.parseInt(epic);
      Integer.parseInt(rare);
      Integer.parseInt(unc);
      Integer.parseInt(passe);
  
      total = lgnd + epic + rare + unc;
      legendaryv = lgnd * 2000;
      epicv = epic * 1500;
      rarev = rare * 1200;
      uncommonv = unc * 800;
      passev = passe * 950;
      totalv = legendaryv + epicv + rarev + uncommonv - passev;
      money = totalv / 1000;
      money2 = money * 10;
  
      System.out.println("Voce tem "+total +" skins.");
      System.out.println("Com isso, voce gastou "+totalv +" V-Bucks na loja de itens.");
      System.out.println("Assim, gastando cerca de "+money2 +" dolares.");
  
  }
  </code></pre>
  
  <p>}</p>
  
  <p>Errors:</p>
  
  <p>The operator * is undefined for the argument types String/Int
  Duplicate Local Variable Passe</p>