-
how to finish this?
//
//march 22,2010
//period 4
import javax.swing.*;
import java.awt.*;
public class Display10 extends JPanel
{
private JLabel label;
private int last, next;
public Display10()
{
setLayout(new GridLayout(1, 1));
next = 5;
label = new JLabel("5");
label.setFont(new Font("Serif", Font.BOLD, 100));
label.setHorizontalAlignment(SwingConstants.CENTER );
label.setForeground(Color.blue);
add(label);
}
private void pickNext()
{
/************************/
/* */
/* Your code goes here. */
/* */
/************************/
}
public boolean guessHigh()
{
pickNext();
return next > last;
}
public boolean guessLow()
{
pickNext();
return next < last;
}
}
-
hmm..lets post the same non-question twice.
what is your problem exactly?
and no, nobody wants to do your hw
-