How do you add code that parses a string and gets three fields that are stored in the string?
I have to: In the Main class, add code that parses the string and gets the three fields that are stored in the string. Then, store this data in the Product object.
The code I have so far is:
package murach.ui;
import murach.business.Product;
public class Main {
public static void main(String[] args) {
String javaProduct = " ";
//TODO: process productString and populate fields of product object
System.out.println("Code: " + product.getCode());
System.out.println("Description: " + product.getDescription());
System.out.println("Price: " + product.getPriceFormatted());
}
}