Results 1 to 3 of 3
  1. #1
    blueduiker is offline Member
    Join Date
    Nov 2009
    Rep Power

    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:
    -countHi H


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


    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 online now Moderator
    Join Date
    Feb 2009
    New Zealand
    Rep Power



    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, 11: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