String Mirror in Java

String Mirror in Java

how to get a mirror image of(string) a given string in java

View Answers

October 29, 2010 at 2:36 PM

Hello Friend,

Try this:

import java.util.*;
class  StringMirror{
public static void main(String []args){
 String str="hello";
 StringBuffer buffer=new StringBuffer(str).reverse();
 System.out.println(str);
 System.out.println(buffer.toString());
}
}

Thanks









Related Tutorials/Questions & Answers:
String Mirror in Java
String Mirror in Java  how to get a mirror image of(string) a given string in java   Hello Friend, Try this:ADS_TO_REPLACE_1 import java.util.*; class StringMirror{ public static void main(String []args){ String str
String Mirror in Java
String Mirror in Java  Hi friend, Thanks for your reply, here you written a program for reversing a string. What i am expecting is mirror image of a string not reversing a string see the bellow figure(if it is visible
Advertisements
Java string
Java string  Strings are immutable.But String s="Hello"; String s1=s+"World"; S.O.P(s1); means printing "Hello World". How
ModuleNotFoundError: No module named 'mirror'
ModuleNotFoundError: No module named 'mirror'  Hi, My Python... 'mirror' How to remove the ModuleNotFoundError: No module named 'mirror'... to install padas library. You can install mirror python with following command
Java String
Java String  You are given two strings S1 and S2,Delete from S2 all those characters which occur in s1 also and create a clean S2 with the relevant characters deleted..write a pgm for this..pls send as soon as possible Thank you
Java String
Java String       In this section, you will learn about the java string. Java String is a set... to a string literal in the object stream. The Java String object contains a sequence
string - Java Beginners
string in java interview questions  What is string in java? Interview questions
capitalizing string in java
capitalizing string in java  How to capitalizing string in Java?   String s = "some string"; String capitol = Character.toString(s.charAt(0)).toUpperCase(); String newString = capitol + s.substring(1,x
How to split string in Java?
How to split string in Java?  Hi, I have a string seperated by ',' comma. How to split the string? Thanks
String immutable - Java Beginners
String immutable  Why is String immutable?  See here Why String is immutable in Java
ModuleNotFoundError: No module named 'mirror-dict'
ModuleNotFoundError: No module named 'mirror-dict'  Hi, My Python... 'mirror-dict' How to remove the ModuleNotFoundError: No module named 'mirror-dict' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'pastebin-mirror'
ModuleNotFoundError: No module named 'pastebin-mirror'  Hi, My... named 'pastebin-mirror' How to remove the ModuleNotFoundError: No module named 'pastebin-mirror' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'pip_mirror'
ModuleNotFoundError: No module named 'pip_mirror'  Hi, My Python... 'pip_mirror' How to remove the ModuleNotFoundError: No module named 'pip_mirror' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'pybloom-mirror'
ModuleNotFoundError: No module named 'pybloom-mirror'  Hi, My... named 'pybloom-mirror' How to remove the ModuleNotFoundError: No module named 'pybloom-mirror' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'pypi-mirror'
ModuleNotFoundError: No module named 'pypi-mirror'  Hi, My Python... 'pypi-mirror' How to remove the ModuleNotFoundError: No module named 'pypi-mirror' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'pytorch-mirror'
ModuleNotFoundError: No module named 'pytorch-mirror'  Hi, My... named 'pytorch-mirror' How to remove the ModuleNotFoundError: No module named 'pytorch-mirror' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'Smart-Mirror'
ModuleNotFoundError: No module named 'Smart-Mirror'  Hi, My Python... 'Smart-Mirror' How to remove the ModuleNotFoundError: No module named 'Smart-Mirror' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'aiobotocore-mirror'
ModuleNotFoundError: No module named 'aiobotocore-mirror'  Hi, My... named 'aiobotocore-mirror' How to remove the ModuleNotFoundError: No module named 'aiobotocore-mirror' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'conda-mirror'
ModuleNotFoundError: No module named 'conda-mirror'  Hi, My Python... 'conda-mirror' How to remove the ModuleNotFoundError: No module named 'conda-mirror' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'get-mirror'
ModuleNotFoundError: No module named 'get-mirror'  Hi, My Python... 'get-mirror' How to remove the ModuleNotFoundError: No module named 'get-mirror' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'infi.git_mirror'
ModuleNotFoundError: No module named 'infi.git_mirror'  Hi, My... named 'infi.git_mirror' How to remove the ModuleNotFoundError: No module named 'infi.git_mirror' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'mirror_seq'
ModuleNotFoundError: No module named 'mirror_seq'  Hi, My Python... 'mirror_seq' How to remove the ModuleNotFoundError: No module named 'mirror_seq' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'pybloom-mirror'
ModuleNotFoundError: No module named 'pybloom-mirror'  Hi, My... named 'pybloom-mirror' How to remove the ModuleNotFoundError: No module named 'pybloom-mirror' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'pyenv_mirror'
ModuleNotFoundError: No module named 'pyenv_mirror'  Hi, My Python... 'pyenv_mirror' How to remove the ModuleNotFoundError: No module named 'pyenv_mirror' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'pytorch-mirror'
ModuleNotFoundError: No module named 'pytorch-mirror'  Hi, My... named 'pytorch-mirror' How to remove the ModuleNotFoundError: No module named 'pytorch-mirror' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'subreddit-mirror'
ModuleNotFoundError: No module named 'subreddit-mirror'  Hi, My... named 'subreddit-mirror' How to remove the ModuleNotFoundError: No module named 'subreddit-mirror' error? Thanks   Hi, In your
Java string buffer
Java string buffer  what is stringBuffer and StringBuilder
How to Append String In Java?
How to Append String In Java?  How to write program in in Java for appending to a String? How to Append String In Java? What is the best way to do... the StringBuilder class. Check the example at Appending String in java. You can
converting string to double in java
converting string to double in java  Please post an example to converting string to double in java. Thanks!   Convert String to Double Tutorial
Java String Datatype
Java String Datatype  Weather String in java is class or Datatype,if it's clss then How can i assign String str="hello";   String is a class found in the package java.lang.*. When we represent string in double quotes
How to convert into to String in Java?
How to convert into to String in Java?  Hi, How to convert into to String in Java? Thanks
Java string buffer
Java string buffer  What is the basic difference between string and stringbuffer object
How To Append String In Java
How To Append String In Java In this section we will read about how to append String in Java. Here we will see the solution of this question through a simple example. There are various ways to append String in Java. Below, we
Java String - Java Beginners
Java String  How to seperate the string into characters.  there is a method called getChars() in String class,plz use that and separate into characters so plz verify the String api for related questions 
Appending String efficiently in Java
for Appending String efficiently in Java. Thanks   Hi, StringBuilder class of Java API is used by developers of Java for appending string... example at How To Append String In Java? Thanks
Core Java String
Core Java String  Hi , Here my code Class Test { String s1 = "null"; String s2 = "null"; String s3 = s1+s2; } what is the out put
On string - Java Beginners
On string -Display reverse String using string reverse method in Java  I wanted to display reverse String using string.reverse() method in Java  Display reverse String using string.reverse()String Reverse Using
java programmming: string manipulation
java programmming: string manipulation  WAP to accept a string from...' occurring in it   Here is a java example that reads a string from the command prompt and find the frequency of the character e in the input string
How to append String in Java?
How to append String in Java?  Hi, I have a number of string in Java which is to be appended efficiently. How to append String in Java? Thanks...: str.append("India"); You check complete tutorial at Appending String in Java
String in Java - Java Beginners
]); } } } ---------------------------------------------------- I am sending simple code of String array. If you are beginner in java...String in Java  hiiiii i initialise a String array,str[] with a size... in advance   Hello Antony Insted Using String Array Use StringBuffer
java string vowel program
java string vowel program  java string vowel program   Please visit the following links: Display the word that begins with vowel Java Count Vowels
java string multiplication
java string multiplication  Is there any simple method of string multiplication in java ..?   public class StringMultiplication { public static void main(String[] args) { String number1 = "17"; String number2
Java String searching.
Java String searching.  How to search a string in given String array... static void main(String[] args) { String city[] = { "Delhi", "Lucknow", "Mumbai", "Kanpur" }; String userCity; Scanner scanner = new
String and StringBuffer - Java Beginners
; Hi vijay Java provides the StringBuffer and String classes, and the String class is used to manipulate character strings that cannot be changed...String and StringBuffer  Dear Deepak Sir, What is String
string
string   difference detween "public static void main (String[] args) " and "public static void main (String args[])" in java but it executes both ,in java which one is legal   The only difference is style, where
java string comparison example
java string comparison example  how to use equals method in String... static void main(String [] args){ String str="Rose"; String str1... using equals() method. In the above example, we have declared two string
String - Java Interview Questions
Java String array declaration and initialization  I am looking for an example of java string array declaration and initialization  Hipublic class ImmutableCart { private final List items; public ImmutableCart(List
string - Java Beginners
Converting into String in Java  Need an example of Converting into String in JavaThanks in Advance
string
string  a java program using string function to input any string... ArrangeStringAlphabetically { public static void main(String[] args) { Scanner input=new Scanner(System.in); System.out.print("Enter string
String - Java Interview Questions
String  i have a String s1="abc"; String s2="123"; then how to get a String s3="a1b2c3

Ads