배열안의 원소인지 판단..
public class Ex5_1_1 { public static void main(String[] args) { int su[]={3,-5,7,9,-12,0,-99,5,89,3}; int max=su.length,x,i; boolean y=false; x=Integer.parseInt(args[0]); for(i=0;i
2007. 1. 22.
GUI 계산기
import java.awt.*; import java.awt.event.*; public class CalculatorGUI extends Frame implements ActionListener,ItemListener { String name_01,name_02; double Num2=0; double buf; private Label ans; private Button key1,key2,key3, key4,key5,key6; private Button key7,key8,key9,key0,keydot; private Button keyPlus,keyMin,keyMul,keyDiv,keyEquel,keyCE,KeyC; private Button keyBack,MC,MR,MS,Mplus; private ..
2007. 1. 22.