[JAVA]how to get a value from another java file : first java file

    public class Swordsman extends Beginner {
    public String attFunc;
    public String attSkill;
    private String nickname;
    private int power;
    private int result;
    public void setnickname(String nickname){
        this.nickname=nickname;
    }
    public void setpower(int power){
        this.power=power;
    }
    public Swordsman(int p,String nm){
            setnickname(nm);
            setpower(p);
           /*nickname=nm;
            *power=p;
            */
    }
    public String nickname(){
        return nickname;
    }
    public int power(){
        return power;
    }
    public int result(){
        if(power>=bpower){
            result=1;
        }else if(power<bpower){
            result=0;
        }
    }
}

secong java file

    public class Boss {
    public int bpower(){
        return bpower;
    }
}



 compile error

.\Swordsman.java:32: error: cannot find symbol
        }else if(power<bpower){



As you see,the bpower in first java file,and how can i get the bpower from secong java file ?
As you see,the bpower in first java file,and how can i get the bpower from secong java file 
?As you see,the bpower in first java file,and how can i get the bpower from secong java file 
As you see,the bpower in first java file,and how can i get the bpower from secong java file ?
