Your problem is on string comparison. See, for instance (
https://www.baeldung.com/java-compare-strings[
^]). Try
import java. util. Scanner;
public class Rudra
{
public static void main (String [] args)
{
Scanner scanner = new Scanner (System.in);
System. out. println (".............. ");
System. out. println ("Are you new to here? ");
String answer = scanner.nextLine ();
System. out. println ("Your name: ");
String subAnswer = scanner. nextLine ();
System.out. println ("Your age:");
int lastAnswer = scanner.nextInt ();
if ( subAnswer.equals("Shruti") && lastAnswer == 23)
{
System.out.println (subAnswer + " your cuteness is 82 percent ");
}
else
{
System. out. println ("Invalid ");
}
}
}