I am receiving the error "Possible lossy conversion from double to int" on the last line (error pointer pointing at the number "2"), when I am not attempting to convert anything from a double to an int. What am I missing?
System.out.println("This is the ancestry calculator. Enter number of generations: ");
Scanner input = new Scanner(System.in);
int generations = input.nextInt();
int ancestors;
ancestors = Math.pow (2, generations);