I need help with my code!!

So i am going to code a program that counts ow may hours it takes to get on place to another.
I am making a feature that asks you would you like to count the time when you will arrive there.

I have coded it like "Do you like to count when will you arrive y/n".
Heres the code:

System.out.println("Would you like to count the time whne you will arrive : y/e");

Boolean y,n;
y = bucky.nextBoolean();
n = bucky.nextBoolean();

if (y = bucky.nextBoolean());

And when i try to run the program i count the time the trip will take and the it asks do i want to count the arrival time and i put y and the it shows an arror and shows the line number where the error is.
and it shows this line

Reply 2

So could either of you change that piece of the code like that it works.
Becuse i really don't understand that "true" or "false" thingy yet.
But if you could edit it like that it works i could understand how to do it =D
Thanks for helpingme out!