hai mtangpos16,
i have done some modifications to your code
you can not write a class inside a main method because main() method is starting point for creating objects but not starting point of the class creation/definition/declaration.
i think your code would be like as follows
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package googleproblem;
/**
*
* @author mtangpos
*/
public class GoogleProblem
{
public static void main(String[] args) {
Mobilephone mp = new Mobilephone(1, 1, 1, 1000, 1, "iphone", "mobile_department");
//if you want to calculateInventory
System.out.println("calculateInventory= " + mp.calculateInventory());
//if you want to getDepartment();
System.out.println("getDepartment= " + mp.getDepartment());
//if you want to getInventoryStockValue();
System.out.println("getInventoryStockValue= " + mp.getInventoryStockValue());
//if you want to getInventoryValue();
System.out.println("getInventoryValue =" + mp.getInventoryValue());
//if you want to getItemNumber();
System.out.println("getItemNumber= " + mp.getItemNumber());
//if you want to getProductName();
System.out.println("getProductName= " + mp.getProductName());
//if you want to getSerialNumber();
System.out.println(" getSerialNumber =" + mp.getSerialNumber());
//if you want to getUnitPrice()
System.out.println("getUnitPrice =" + mp.getUnitPrice());
//if you want to getUnitsStock()
System.out.println("getUnitsStock = " + mp.getUnitsStock());
}
class Mobilephone { //class name and attributes
private int SerialNumber; //serial number of product
private int ItemNumber; //item # of product
private double UnitsStock; //# of units in stock
private double UnitPrice; //Price per unit
private double InventoryValue; //The dollar value of the inventory in stock
private String Department; //The department the product belongs to
private String ProductName; //product name
//constructor
public Mobilephone(int item, int serial, double units, double price, double …