title: Detecting characters after symbols
body: <p>I'm trying to write a method going in two ways - if a character after the symbol $ is an integer, then I want to go to the second if statement and execute it. If a character after the symbol $ is a digit (or a letter), then I want to set that number to 16, and every time a new digit is used, I want to increment the setNumber by 1. Here's what I tried:  </p>
  
  <pre><code>for (i=0; i&lt;anyLines.length; i++) {
  
              int setNumber = 16;
  
              // 1st IF statement
              if (Character.isDigit(anyLines[i].charAt(the character after $)))
                          anyLines[i] = anyLines[i].replace("$","");
                          anyLines[i] = anyLines[i].replace(charAt(after zero),setNumber);
                          // Increment set number if a new digit is detected
  
                      }
  
              else {
                          continue;
                   }
  
              // 2nd IF statement
              if (anyLines[i].isInteger(anyLines[i].charAt(the character after $))) {
                  anyLines[i] = anyLines[i].replace("$","");
                  anyLines[i] = Integer.toBinaryString(131072  
  +(Integer.parseInt(anyLines[i]))).substring(1,17);
              }
              else {
                  continue;
              }
  </code></pre>
  
  <p>I have no idea how to do this.</p>