 So I've heard some students running it to an issue with the scanner. They would do input dot next line and It just wouldn't work. It would do it wouldn't even actually allow me to kind of connect to it And so I actually was kind of concerned because obviously that's what next line is supposed to do It's I've already kind of showed that to you that you can use it to Get a string from the user and so I did a little thing around and this is actually just a little bit of a problem This link will actually be in the email for you to kind of read up on but the reason it actually is It's something to do with Using that next end What happens is basically it does not finish the line. It actually will give me the integer Which is what I wanted But then when I'm saying that next line and waiting it kind of it doesn't do it and so we've run into that issue of I Want my string now. So what can we do to resolve this? So just so we can even see that in action you can skip ahead if you'd like What we can do is we can kind of tackle this in a sense of so the first thing I did was I want my cigars since we're doing the squirrel problem and So I go all right. Let me prompt my user first system dot out print Enter the number of cigars input dot next And all right that part not too not too bad But then we get into the second portion where we started running into the issue of is it the weekend is the weekend and Again, we were trying to do next line So if you just kind of run this now, and I'm gonna actually just do a little print statement right now So we can even see this in action. So I'm gonna do a print line With cigar plus string plus Weekend weekend so again, I take this and I'll compile it out test Java Java test Enter number of cigars are a 50 Notice how all of a sudden I hit enter and What hey program shut down. So how do I solve this problem? Well, one of the other things we can use is something called Next and what next does is it's actually waiting for the next kind of non-printed character so a space a tab and enter and Luckily since that's our last thing what we can do now is if I compile this up and I run this Enter number of cigars. Is it the weekend? YES Now it's gonna give me exactly what I was looking for Now since I'm kind of already talking about this one of the other things I mentioned in classes and Inside the assignment is strings don't work the same way Say for example, I Tried to say string. Yes equals Yes, if Yes equal equal Weekend that's what they type they type the weekend. So I should be it should be the weekend, right? System out that print line It's the weekend and Yeah Just in case just in case We're gonna say What happens if it's? Nope Still weekdays So we've got this lined up and I'll go ahead and compile this up boom And I'll run this 50. You're gonna see when I type. Yes, even though I say that you know string Yes equals. Yes, and I typed. Yes Nope, still weekday the reason why is because strings are very complex data type. They're not as Simplistic or primitive as our integers and our charts. So what's actually happening here is This is in one memory address and this is in one another memory address And so what we're doing is we're actually trying to say are these two items at the same memory address Obviously it's not working But if instead of this we say weekend dot equals Yes compile it and run it 50 Yes, it's the weekend At which point you guys still have to do the homework assignment and I expected to be turned in on time Best of luck guys