Search:

Type: Posts; User: javaStooge

Search: Search took 0.13 seconds.

  1. Replies
    7
    Views
    1,054

    Re: Replacing characters in a an array

    I need the program to process and scan the address and print an output stating whether the character is a digit or a letter.


    for(i = 0 ; i < charArray.length; i++){
    if(Character.isDigit(i)){...
  2. Replies
    7
    Views
    1,054

    Re: Replacing characters in a an array

    I'm not familiar with the regex....but this is what I was thinking, except I'm getting an error by using
    isDigit(charArray(i)) Not sure how else to scan the character array.


    for(i = 0 ; i <...
  3. Replies
    7
    Views
    1,054

    Re: Replacing characters in a an array

    Yes, that was the direction I was headed, except replace() accepts only replace(old char, new char), so I'm not sure how else to condense the code.
  4. Replies
    7
    Views
    1,054

    Replacing characters in a an array

    I just came across this post from the forum...is that the only way to code the JOptionPane? Seems rather similar to Sys.out
    ...
Results 1 to 4 of 4