I am new to java (previously only worked with sql) and I am attempting to set a length limit for my string variable. Basically I have a username field that can only be 6 characters long. I am trying the followingrivate String username (6);I am assuming this is not the correct format. Does anyone know how i can do this in java correctly?