Это мой код:
Он входит в цикл while, но не входит ни в один из операторов If.
public static void main(String [] args)
{ Scanner scan = new Scanner(System.in);
System.out.print("Would you like to add a new component or find a
component? (A=add)(F=find): ");
String action = scan.nextLine(); action=action.toUpperCase();
while (select==true) {
if (action=="A") {
System.out.print("Do you want to add a Resistor or Inductor?
(R=resistor)(I=Inductor): ");