public int getequal2(String id ,String newpassword) 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);
			}		
			for(int i = 0; i<this.getMemberCount() ; i++){
				if(collectionm.elementAt(i).ID.equals(id) && collectionm.elementAt(i).password.equals(newpassword))
					return 1;
				//̵ͺйȣ ġϿ αμ ˸ 1 ش.
			}
			return -1;
			//̵ йȣ ġʴ ٸ -1 ش.
		}catch(Exception e){
			return -1;
		}
	}