Help with a java school project


#1

Scanner kbReader3=new Scanner(System.in);
System.out.println("Are you researching a project,Yes or No : ");

String no;
String des=kbReader3.next();
String yes;
String des2=kbReader3.next();

 if (des == no)
{ 
   System.out.println("GO AWAY ");
}
if (des2 == yes)
  { 
      System.out.print("yes ");
    }

Not getting the response I want to.


#2

You may have better luck getting an answer if you post enough code that it can be executed, and explain what you want to see and what you see instead and what information you’re missing to fix that

Imagine you’re grabbing someone on the street to get help. You’ve got some explaining to do before you get any, and if it’s too inconvenient they’ll still walk away even if they understand what is going on.