Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: How to reverse a string, skiping numbers , and ' ?

  1. #1
    Junior Member
    Join Date
    Nov 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to reverse a string, skiping numbers , and ' ?

    Hi,

    If we have :

    String source = "85.34% of all, the application are wrong, it's normal"

    How to reverse it to :

    "85.34% fo lla, eht noitacilppa era gnorw, ti's lamron"

    Thanks


  2. #2
    Super Moderator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,103
    Thanks
    169
    Thanked 779 Times in 725 Posts
    Blog Entries
    5

    Default Re: How to reverse a string, skiping numbers , and ' ?

    Whow what you've tried and where you're stuck, as no one here will do this for you. And please read the links below:

    This thread has been cross posted here:

    http://www.java-forums.org/new-java/43665-how-reverse-string-skiping-numbers.html

    Although cross posting is allowed, for everyone's benefit, please read:

    Java Programming Forums Cross Posting Rules

    The Problems With Cross Posting

    Last edited by helloworld922; May 6th, 2011 at 11:19 PM.

  3. #3
    Junior Member
    Join Date
    Apr 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: How to reverse a string, skiping numbers , and ' ?

    Try this. Run the code and see if you understand what is happening.

    Regards

    Dele

    package my.reversestring;
     
    import java.lang.String;
     
    public class ReverseString {
    //Code edited by moderator
    	public static void main(String[] args) {
     
        }
     
     
     
        // Reverse String method using iteration
        public static void reverseString(String s) {
     
        }
     
     
    }
    Last edited by copeg; May 26th, 2011 at 09:11 AM.

Similar Threads

  1. Reverse Random Number Game
    By koryvandell in forum Java Theory & Questions
    Replies: 2
    Last Post: April 4th, 2011, 01:11 AM
  2. Reverse character using void method
    By bgwilf in forum Algorithms & Recursion
    Replies: 2
    Last Post: December 8th, 2010, 06:25 AM
  3. Replies: 2
    Last Post: February 25th, 2010, 03:17 PM
  4. Reverse Number
    By java1 in forum Java Theory & Questions
    Replies: 2
    Last Post: October 28th, 2009, 10:19 AM
  5. How to reverse a String using java.lang.StringBuilder
    By JavaPF in forum Java SE API Tutorials
    Replies: 0
    Last Post: July 22nd, 2009, 09:42 AM