Is possible print e.g. "X²" instead of "X^2" but the exponent as a variable?

In Java using Intellij IDEA is possible to print a variable like this "X²" (being "2" the variable) instead of "X^2"?
6 Replies
JavaBot
JavaBot8mo ago
This post has been reserved for your question.
Hey @Franscis123$#! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Kyo-chan
Kyo-chan8mo ago
What?
Unknown User
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
Franscis123$#
Franscis123$#OP8mo ago
Ok, thanks
JavaBot
JavaBot8mo ago
If you are finished with your post, please close it. If you are not, please ignore this message. Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
JavaBot
JavaBot8mo ago
Post Closed
This post has been closed by <@1117467821270650921>.

Did you find this page helpful?