title: Not able to connect two user inputs
body: <p>As a beginner of programming, I'm trying to write a simple <strong>Java</strong> program for comparing the prices (lowest and highest price) of some items entered by the user.</p>
  <p>So far, I've managed to write the code telling the user which price is the lowest and highest, but I'm not able to inform the user which item the price refers to. Any ideas?</p>
  <pre><code>System.out.println(&quot;\nEnter the name of item 1 &quot;);
  String itemOne = scanner.next();
  System.out.println(&quot;\nEnter the price of &quot; + itemOne + &quot;: &quot;);
  double priceItemOne = scanner.nextDouble();
  
  System.out.println(&quot;\nEnter the name of item 2 &quot;);
  String itemTwo = scanner.next();
  System.out.println(&quot;\nEnter the price of &quot; + itemTwo + &quot;: &quot;);
  double priceItemTwo = scanner.nextDouble();
  
  double highest = Math.max(priceItemOne, priceItemTwo);
  System.out.println(&quot;\nThe most expensive item is &quot; + highest);
  double lowest = Math.min(priceItemOne, priceItemTwo);
  System.out.println(&quot;\nThe cheapest item is &quot; + lowest);
  </code></pre>