Answer to Question #239034 in Java | JSP | JSF for Jaden

Question #239034
1. In your solution, you must create a class called Products, which will contain all your working
methods.
2. This class will, as a minimum, contain the following methods, but you are encouraged to
add more methods:
• SearchProduct();
• SaveProduct();
• UpdateProduct();
• DeleteProduct();
• DisplayMenu();
• CaptureProduct();
• ExitApplication();
3. Finally, create a main class to run your application
1
Expert's answer
2021-09-19T20:42:28-0400
import java.util.Scanner;
public class Main
{
	public static void main(String[] args) {
		Product p1=new Product();
	}
}


class Product{
    Scanner in=new Scanner(System.in);
    public void SearchProduct(){
        int code;
        System.out.println("Enter product code: ");
        code=in.nextInt();
    }
    public void SaveProduct(){
        System.out.println("Product details saved successfully.");
    }
    public void UpdateProduct(){
        System.out.println("Product details updated successfully.");
    }
    public void DeleteProduct(){
        System.out.println("Product details deleted successfully.");
    }
    public void DisplayMenu(){
        System.out.println("Product details: ");
    }
    public void CaptureProduct(){
        System.out.println("Product details captured successfully.");
    }
    public void ExitApplication(){
        System.out.println("Exiting application...");
    }
    
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS