i m making a BMI calculator GUI which calcuates weight in corresponding to height shown on slider but there is some error in program. problem lies in following line
int value = slider.getValue();
int weight=0;
if (if buttonGroup.getSelected()=="Male")
{
weight=value/28;
}
else if (buttonGroup.getSelected()==Female)
{
weight=value/30;
}
System.out.println("weight");