Question: Why does the following code give a compiler warning? (Use javac -Xlint) How should it be fixed? 1 import javax.swing.*; 2 3 public class H2ClassK
Why does the following code give a compiler warning? (Use javac -Xlint) How should it be fixed?
1 import javax.swing.*; 2 3 public class H2ClassK { 4 String [] sa = {"a", "b", "c"}; 5 JComboBox jcbA = new JComboBox (sa); 6 } // end class H2ClassK
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
