public int getequal(String id) throws Exception{

		try{
			@SuppressWarnings("resource")
			ObjectInputStream osi = new ObjectInputStream(new FileInputStream("membercollection.txt"));///óϾ , Ͼ׳ϴ° ҽ߰
			this.setMemberCount(osi.readInt());
			collectionm.clear();
			for( int i= 0; i< this.getMemberCount();i++){
				Member ms = (Member)osi.readObject();
				collectionm.add(i,ms);
			}
			//׵ ߰Ǿ 𸣴 membercollection.txt Ͽ ü о collectionm Ӱ äش.
			for(int i = 0; i<this.getMemberCount() ; i++){
				if(collectionm.elementAt(i).ID.equals(id))
					return 1;
				// id߽߰ 1 ش.
			}
			//collectionm input id  ID  Memberüִ Ȯش.
			return -1; 
			// id߰߾Ͽ 쿡 -1 ش.
		}catch(Exception e){
			return -1; 
			//ʾ (  Memberüٸ)-1 ش.
		}
	}