Pure Java random string code to Processing random string code

Hello,

Please post clean formatted code.

Try to extract the function first and then add it to a class if needed:

void setup()
  {
  int n =  20 ;
  System.out.println(getAlphaNumericString(5));  
  }
  
  String getAlphaNumericString(int n)
    {
   // Code here
    }

I was able to do this and get it to work:

:)