Code:
import java.util.*; import java.awt.*; import javax.swing.*; import java.awt.event.*; import javax.swing.JFrame; // provides basic window features import javax.swing.JLabel; // displays text and images import javax.swing.SwingConstants;
import java.util.*; import java.awt.*; import javax.swing.*; import java.awt.event.*; import javax.swing.JFrame; // provides basic window features import javax.swing.JLabel; // displays text and images import javax.swing.SwingConstants;
C:\Users\Brian\Desktop\Java Inventory program\Inventory.java:35: reference to List is ambiguous, both class java.awt.List in java.awt and class java.util.List in java.util match private List nwProduct; ^ 1 error Tool completed with exit code 1
import java.util.*; import java.awt.*; import javax.swing.*; import java.awt.event.*; public class Inventory extends JFrame// Main class { private JLabel prodNameLabel;
import java.util.*; public class Company extends product implements Comparable { private String developer; //double total; /** Creates a new instance of Company */ public Company() { super(); String developer =""; //total
class product implements Comparable { private String productName; // class variable that stores the item name private int itemNumber; // class variable that stores the item number private double unitProduct; // class variable
import java.util.*; // program uses any class available class product implements Comparable { private String productName; // class variable that stores the item name private int itemNumber; // class variable that stores the item number private double unitProduct; // class variable that stores
import java.util.*; // program uses class Scanner public class Inventory { // main method begins execution of Java application public static void main( String args[]) { product[] myProduct =
/* * Main.java * * Created on July 19, 2007, 5:54 PM * * To change this template, choose Tools | Template Manager
Leave a comment: