It was, but I changed it to Product, because it should contain data for one product.
Type: Posts; User: nera1981
It was, but I changed it to Product, because it should contain data for one product.
Here is the code snippet (to which error message is referring to):
class Product
public static Product getFromId(int productID)
{//this is the line 158//
main class(Sales)
...
I tried that, but it's not working.
I get error message saying:
Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - missing return statement
at...
I have the next code:
import java.sql.*;
public class Products {
private int ProductID;
private String name;
private String category;
private Double price;