Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1
public class Program { public static void main(String[] args) { System.out.println("\u20B9"); } } If you're tyring it on Sololearn, above code wont get your output as sololearn uses html entities to output unicodes. For sololearn purpuse there is a hack, we can print directly the html entity '& #x20b9;' public class Program { public static void main(String[] args) { System.out.println("& #x20b9;"); } } //IMPORTANT try copy pasting above code without space between & and #. This was made in purpose because if not, sololearn will convert that into my unicode indian ruppee
11th Jun 2018, 10:32 AM
Gopal Gautam
Gopal Gautam - avatar