In java "\u221A" is refer to square root symbol. It is Unicode.You can try to visit link below for more details :
Click here
If you want to print square root symbol through your command prompt, you can try something like this. I hope your command prompt can support for this thing.
public class Test2
{
public static void main(String[]args)
{
System.out.println("\u221A");
}
}
If you want to put it in JOptionPane's message box (this is perform well in my computer), you can try this :
import javax.swing.JOptionPane;
public class Test2
{
public static void main(String[]args)
{
JOptionPane.showMessageDialog(null,"\u221A");
}
}