Results 1 to 2 of 2

Thread: Strings

  1. #1
    InfoTUM is offline Member
    Join Date
    Oct 2014
    Posts
    1
    Rep Power
    0

    Default Strings

    Hello guys,
    I have a problem with functions connected to strings.

    I have a random String, e.g. "Hello World!" and I have to change every capital Letter into a small letter and vise versa. This alone would be fairly simple, but I have to do it with the "help" of to other strings.
    lowercase= "abcde...z" and
    uppercase="ABCDE...Z". Every small letter stands at the very same position as the capital letter, but in the other string.
    Ther should be a letter for letter search in lowercase and uppercase for the letters of "Hello World".

    I have an idea how I could solve the task, however I need a way to search the first string, here "Hello World", according to position. A statement which does: "Give me the letter of position x". This found letter should be able to be stored in a variable or else be able to be used by another statement. And it should be compatible with a for lope.

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default Re: Strings

    I find it hard to understand your problem description. Are you asking how to get the character at a specific position in the String? If so, the javadocs are your friend.

    String (Java Platform SE 7 )
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Similar Threads

  1. Help with strings(?)
    By TJRedeemer in forum New To Java
    Replies: 8
    Last Post: 10-22-2013, 06:56 PM
  2. Strings
    By Krazzyjman in forum New To Java
    Replies: 3
    Last Post: 09-07-2012, 09:14 PM
  3. need help with strings
    By iron_fist in forum Java Applets
    Replies: 10
    Last Post: 02-15-2012, 06:16 PM
  4. Need help with Strings
    By </3java in forum New To Java
    Replies: 24
    Last Post: 02-17-2011, 06:00 PM
  5. It is possible in Strings..?
    By mlibot in forum New To Java
    Replies: 1
    Last Post: 03-12-2010, 06:30 AM

Posting Permissions

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