Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to print square root ?

843789Apr 4 2009 — edited Apr 4 2009
Hi...i want to print square root on command prompt and a symbol(i don't know what it's name for second symbol). But i get a problem. Below is my code. For what i understand i should use \u221A right? :-
public class Test
{
	public static void main(String[]args)
	{	
		try
		{
			System.out.println("\u221A");
			System.out.println("\u00ea");
		}
		catch(Exception e)
		{
			e.printStackTrace();
		}
	}
}
But the result is only question mark...can someone show me the right way and what's wrong to my code. I very appreciate to any help. Thank you.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 2 2009
Added on Apr 4 2009
6 comments
405 views