Results 1 to 4 of 4
  1. #1
    nasil122002 is offline Member
    Join Date
    Nov 2013
    Posts
    1
    Rep Power
    0

    Default String permutation

    Hello,

    I need to replace certain text with permutation.

    E.g.: the word AEMERAE should converted to ÄMERÄ, ÄMERAE, AEMERÄ or
    the word AEMERAEOE should converted to ÄMERÄÖ, ÄMERAEOE, AEMERÄOE, AEMERÄOE etc.

    Alone with "replace" I've tried to replace the word but it is done all at once. How can I make it with permutation?

    Java Code:
     BufferedReader b = new BufferedReader(new InputStreamReader(System.in, "ISO-8859-1"));
    
     String input= ""; 
    
     input = b.readLine();
     input= input.replace("AE"," Ä");
    
     System.out.println(input);
    Thank you for any help.
    Last edited by JosAH; 11-30-2013 at 10:43 AM.

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,882
    Rep Power
    25

    Default Re: String permutation

    Also posted at: String permutation
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    4,021
    Rep Power
    6

    Default Re: String permutation

    What is this?? Do you have a question?

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  4. #4
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,767
    Blog Entries
    7
    Rep Power
    21

    Default Re: String permutation

    I find it a bit rude for the readers to remove a question, so I reinstalled the original post (the question has been asked (and answered) numerous times)

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. Permutation of String ( Problem in understandin Code )
    By Jack_Tauson_Sr in forum New To Java
    Replies: 2
    Last Post: 03-17-2013, 04:41 AM
  2. random array permutation
    By jwl in forum New To Java
    Replies: 1
    Last Post: 11-15-2012, 09:01 PM
  3. Need a help in two dimentaional permutation
    By venk123 in forum New To Java
    Replies: 7
    Last Post: 08-06-2011, 02:28 AM
  4. Permutation
    By Claymz in forum New To Java
    Replies: 4
    Last Post: 06-01-2011, 03:27 PM
  5. Replies: 3
    Last Post: 08-24-2009, 08:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •