Search:

Type: Posts; User: aussiemcgr

Search: Search took 0.09 seconds.

  1. Replies
    3
    Views
    7,552

    Re: String Index out of range

    For your reference, you can do this a few other ways as well.

    One way would be by using a method:

    import javax.swing.JOptionPane;

    public class JunkTesting
    {

    public static void...
  2. Replies
    3
    Views
    7,552

    Re: String Index out of range

    Basically, the last index of the String is the size of the String minus 1. So, you do not want to go while Loop is less than OR EQUAL TO the length of the String, but rather just less than it.
    ...
Results 1 to 2 of 2