X Squared Unicode Java Code

System.out.println("km\u00B2");
Muhammad Tayyab