How do you put a mathematical formula in the java line?



  • I want to put the line in the console of the species:

    введите сюда описание изображения

    Would you please tell me the meaning in Java that I have to install the line so that I can get such a beauty to the console?



  • Look at this. https://en.wikipedia.org/wiki/Unicode_subscripts_and_superscripts

    String test = "x³ + x² + 1 = y²";
    System.out.println(test);
    

    Output:

    x³ + x² + 1 = y²
    



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2