• Post Reply Bookmark Topic Watch Topic
  • New Topic

How print a String value as in mirror  RSS feed

 
Mahesh Vallamati
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All warm welcome to JavaRanch. How to print a String value as in mirror
 
fred rosenberger
lowercase baba
Bartender
Posts: 12565
49
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
print it where? on the command line, a printer, in a GUI?

 
Campbell Ritchie
Marshal
Posts: 56587
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you mean how do you create a new String which is the reverse of an old String? So “Campbell” becomes “llebpmaC”? Have you any idea how you might want to do that? Can you convert the String into its individual chars. Can you reverse those chars? Or simply print them backwads?

By the way: this forum is not intended for questions, so I shall move you.
 
Mahesh Vallamati
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Requirement : On Console we need to print string like AMBULANCE in mirror image. Sorry for the delay in replay.
 
Dave Tolls
Ranch Foreman
Posts: 3068
37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since a mirror image would involve reflecting the individual characters then, unless you can set the characters used by the console to some "mirrored" set, it's not possible.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!