 So one of the things we've been working on is this idea of objects and One of the things we've also been kind of introduced to when it comes to programming is some different kinds of data types Now we've learned about say integers and then we also learned about boyans But we also learned about this other thing called a char data type and then a String data type and those are a little weird if you're not too Too savvy to them just yet. They are a little kind of complex, especially that that char data type Well one thing to think about is Char is any possible character any possible Character that we can represent on a screen. So look at your keyboard for just a second everything you see on there a period a The carrot in exclamation point the pipe the number one the Capital G the lowercase G The tab actually the tab. I know you know that you haven't ever really seen that symbol before but the tab Can actually be is a character that has to be displayed some way on my screen So, how does that all kind of work? Well, that's actually where the Char data type comes into play and one of the things that we have is we actually have a few methods Using what's known as the character class just like we saw we had the math class We have something known as the char the character class So say for example, I said char, I don't know a a Equaled The char representation of the letter a simple enough nothing too terribly crazy Well, what I could actually do here is I can take a look and see if this is a Lowercase or uppercase Character and the way I can do that is actually through something like Character dot is Lowercase a Now what this will do is as you can kind of guess is it's gonna see if this is a lowercase if a the variable the variable a not the Text the variable a is lowercase than we get a true if not we get a false So what happens if I? wrote something like char degrees You know one of the things I was mentioning is we have symbols that aren't on our keyboard when we look at a char So what about the degree symbol? Well, that's a interesting one. Here's that degrees symbol Well, is that a lowercase or an uppercase? Oh Technically not lowercase. It's not a lowercase alphanumeric character. So guess what it's false but one of the other things we can say is a character is letter is letter or Digit and again, I replace it with my variable Degrees is this going to be true or false? Well, the degree symbol is not is not a Letter so this is going to produce something called false So one thing I want to take a look at is maybe that tab that's actually pretty interesting How do I how do I represent a tab? You know, I was able to do the the degree symbol relatively easy, but what about something like a char Tab That's kind of weird, you know, how do I get that to display on my screen and that's actually through what something we call escape Characters now how we take care of an escape character inside of Java is we actually use This slash forward slash or backslash. I always kind of blank out on which one it is I know a terrible person that teach this stuff, but it's that slash It's the one above your keyboard is the one you're explicitly looking for and so now how do I display? this well one of the things that Java kind of gets is people are probably going to want to display say the tab a lot and How can we just immediately make that relatively easy for everyone and not have to remember all these magical codes that we'll talk about a little later? Well, one of the things we can do is we can put in a Lowercase t This is a little weird, you know, I know I erased it and put it over there, but I Mentioned when we learned about Chars that they only had to be one character. They could only be one character and Suddenly I'm throwing out this guy and this is two things. What huh? I don't understand Well, what's going on is this is actually a special Symbol in Java. This is actually is telling me. Oh, this is an Escape character and so now when I do something like a system Dot out that print LN name plus tab Since I've named this tab I Have the luxury of these two things Kind of working together Plus Adam what I'll get is actually name and Instead of it being right instead of Adam being right here. There's actually a giant tab in there. There's a name a giant Non, you know Printing character that's being displayed so that Adam is further away. So let's actually kind of take a look at that in action so Again char Char tab equals Single character T notice even it's kind of excited about this system dot out that print L in name I Don't even need that space. I'm so used to putting it in there. I don't even need it plus tab plus Adam I Save this let's compile it up and let's take it for a ride Notice how much space was in there one of the things I can do is I can actually add Multiple tabs in here and as you can guess if I happen if I add multiple tabs I get Extradistance now. Why is this pretty nice? Well if we take a look at say another system that out that print line Let's say we made a bigger word instead of name. We said Accu-patient Instructor Java C Java test Now things are slightly off, but let's get rid of that second tab over here And what you're gonna see is that tabbing over now I'm certain to allow myself to have Proper alignment with my text, which is really nice. It gives me a little bit more Fluidity and just better readability with my code so we can take care of things like this