 So one of the things that you'll undoubtedly hear about when we move a little further is that everything in Java is considered something known as an object Now what does that mean? Well even before we start to build our own objects one of the luxuries that we kind of have as Being developers is someone has already come out and done a lot of work for us You might notice that every time we write we do use say the scanner class scanner class we have to always start writing with import Java That util That scanner and You know, we haven't really talked too terribly much, but what's actually going on is we're grabbing one an object But what we're also doing is we're grabbing Something that's been pre-built for us. We can think of it sort of almost like a giant tool shed of What we call objects objects That we can grab from and one of those is in fact guess what the scanner class But we have some other ones that we can work from so one of the ones that we start to look at in chapter 4 is a class an object known as Math and again, it's exactly what it sounds like Someone long time ago who's smarter than you smarter than me came out and said hey, you know, it would be a really good idea To have something like you know the sign method So I don't have to worry about geometry class or the cosine method or the tangent method And we can even go further and say for example, I just want to do some basics One of the things we've run into working with Doubles is the fact that a double Could suddenly become five point zero zero zero zero zero zero zero zero zero one Kind of annoying because I don't want to have to deal with Approximation all the time. I want to be very factual Well, one of the things that I can do is I can actually run something like Round and as you can imagine guess what that does it rounds my number So how do I start to activate this and let's actually even tackle that idea of using this round method Let's say for example, I've made a double We'll call it X just for that sake Five point zero zero zero zero zero zero zero one. I'm sure you get my point How do I now look at this in such a way that I I'm able to explicitly say if X equal equal five You know now I can move on to making my true statement right now. This is not a true statement X Zero you know one two three four five six seven seven zeroes and a one does not equal five whole number So what can I do? Well, one of the things that I can do is I can reassign X again Left to right Association kicks in this left side. I'm going to change colors for that this left side is My where side it's the location in memory. So the Memory address Then on the right side This is considered the what side. This is the evaluation side Why this matters is now what I'm going to do is I'm going to actually reevaluate and Reassign a value to X X on the left side Again is the memory address. It's the where but on the right side is the what? So what I can do is I can say something like math Dot Round that round method that we just talked about parentheses X And so what this is going to do is as you can guess it's going to take our number Round it down to the traditional X Well traditional five and now we can actually apply that so let's even see that in action. So I Said I had a double X equals five point zero zero zero zero zero a bunch of zeros and I want to do an if statement if equal five System out that print line It's Oh my goodness So again, how did I tackle? This One of the things that's a little different than the scanner class as math is already pre-built into Java's standard what we call library, so Just to even put that on there so that it's at least on the screen within the standard library Which means I don't have to do any form of an import statement. I'm already Ahead in this case. So again, like I said what I'm going to do is I'm going to Say I want to reassign X a value math dot round X Left to right association kicks in the left side is the where the right side gets evaluated first So five point zero zero zero zero zero one becomes five and then X now gets reevaluated as five So let's actually kind of take a look at that. I pull this up Java C test dot Java Luckily no compiler errors Java test It's true. Oh my goodness. Isn't it beautiful? We have so many things at our disposal