CustomerParser.java - Assignment 5 Arizona State University...

This preview shows page 1 out of 1 page.

// Assignment #: 5// Arizona State University - CSE205// Name: Punit Denani// StudentID: 1210836234// Lecture: MWF 10:30// Description:This takes the input string and then decides whether the customer is a member or //not and then proceeds with the further processpublic class CustomerParser{public static Customer parseStringToCustomer(String lineToParse){//this takes the string and splits it into a string array and then accesses the individual//members to know if the customer is a member or not and then gets the rest of the values from//input.Customer A;String[] arr = lineToParse.split("/");String B = arr[0].toLowerCase();String fName = arr[1];String lName = arr[2];

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture