Breaking down components in a String sentence by user
<p>For example: 
Someone orders some movie passes: 
<strong>User enters :</strong> 3 tickets for Taken 2 at 17.50
How can I extract the quantity of tickets purchased, know the movie selected and total the costs from the entered string. </p>

<p>Any help is greatly appreciated. </p>

<pre><code>                 String Mac1
         System.out.println("Enter num of tickets, movie &amp; (at) ticket price:");
         Mac1 = input.nextLine();

         String Mov1[]= Mac1.split(", ");

           for (int i = 0; i &lt; Mov1.length; i++) 
           {
               System.out.print(Mov1[i]);

           }
</code></pre>
