i'm a beginner at java scripting only been coding for no longer than 3 weeks and i've been stuck on this for a while.
I get the error variable vYourName might not have been initialized, when i compile. This is what i have wrote so far.
import java.util.Scanner;
public class GetInput
{
public static void main(String[] args){
    Scanner sc= new Scanner(System.in);//create a scanner object to collect user input
    String vYourName;
    String vPraise;
    System.out.print("Enter your name? >>");
  if(vYourName=="giacomo")
  {
    vYourName= sc.next();
    vPraise =vYourName + " ,hi there";
}
    else
{
    vYourName= sc.next();
    vPraise =vYourName + " how are you";
}
    System.out.println(vPraise);
}
}
 
     
     
     
    