I'm trying to split a string into 3 integers but i'm getting the error "int cannot be dereferenced" on dr java please help
code:
public class ValidDate
{
  public int validYear;
  public int validMonth;
  public int validDay;
  public ValidDate(String validDate )throws Exception
  {
  validYear = Integer.parseInt(validDate).split[1];
 validMonth = Integer.parseInt(validDate).split[2];
    validDay = Integer.parseInt(validDate).split[3];
.....}
 
    