For example: Someone orders some movie passes: User enters : 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.
Any help is greatly appreciated.
                 String Mac1
         System.out.println("Enter num of tickets, movie & (at) ticket price:");
         Mac1 = input.nextLine();
         String Mov1[]= Mac1.split(", ");
           for (int i = 0; i < Mov1.length; i++) 
           {
               System.out.print(Mov1[i]);
           }
 
    