Results 1 to 3 of 3
  1. #1
    blueduiker is offline Member
    Join Date
    Nov 2009
    Location
    California
    Posts
    55
    Rep Power
    0

    Default javabat problems

    Hey guys I really need help with Javabat.
    It would be great if you guys could help me before 8pm tomorrow.
    I need help with:
    STRING2:
    -doubleChar
    -countCode
    -bobThere
    -sameStarChar
    -countHi H
    -endOther

    LOGIC2:
    -noTeenSum
    -loneSum
    -evenlySpaced

  2. #2
    Addez is offline Senior Member
    Join Date
    Aug 2009
    Posts
    294
    Rep Power
    0

    Default

    I know it's so much easier to ask here for help, but all those things already exsist on the internet. Google it.
    If you got questions regarding something then you may ask here
    Ty :)

  3. #3
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,565
    Rep Power
    12

    Default

    Wow!

    Consider doubleChar() for instance.

    See the Java String Help document for help with strings.
    "See Also: Example Code Java help: If Boolean Logic | Strings | While and For Loops | Arrays and Loops" (they're all links in the original)

    And about the question itself (Given a string, return a string where for every char in the original, there are two chars):

    Hint: Declare a local String result variable, starting with the empty string "". The standard loop over every char in a string is: "for (int i=0; i<str.length(); i++) { ...". Inside the loop, use "str.charAt(i)" or "str.substring(i, i+1)" to get each char, and add them to the result string with "=" and "+".

Similar Threads

  1. Problems, problems, problems!
    By Empower5315 in forum New To Java
    Replies: 2
    Last Post: 08-28-2009, 04:27 AM
  2. Few Problems Help!
    By elad_bj in forum New To Java
    Replies: 4
    Last Post: 04-07-2009, 03:45 AM
  3. GUI problems.
    By saytri in forum New To Java
    Replies: 1
    Last Post: 12-16-2007, 10:27 PM
  4. many to many problems
    By cecily in forum JDBC
    Replies: 1
    Last Post: 08-02-2007, 05:51 PM
  5. a few problems
    By gary in forum AWT / Swing
    Replies: 0
    Last Post: 07-11-2007, 04:57 PM

Tags for this Thread

Posting Permissions

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