Can i put a condition saying that "if a variable carries a srting content" like this way(im a very beginner to java )

if(couple!=null )
{
do this.....
}

(couple is my variable)