Pretty basic question I believe... lets say I had this program and the access code had to specifically be 13 characters long. How would I make it so that if it wasn't 13 long then the user would have to retry and enter it again?
import java.util.Scanner;
public class access code
{
Scanner scan;
public void go()
{
String code = ("Enter your access code: ");
}
}