Java Programming Tutorial 2 - Installation and Hello World

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
welcome back everybody to your second java tutorial this video is we're actually gonna write our first Java program and just break down the structure but before we get started I want to give a special shout-out to our sponsor pram pram allows you to do peer-to-peer interviews to practice your interviewing skills to get a job in the industry you can practice your java doing interviews for data structures and algorithms but they also have stuff for system design front end and even behavioral interviews if you're interviewing with someone and there's just some kind of chemistry between you you guys can connect and do more interviews in the future so a lot of people are using pram to get jobs at Google Twitter Facebook all kinds of sweet tech companies so please check out the link in the description and go sign up for a free account I promise guys you will not be disappointed go give them a try so there's a couple things you're going to need the first thing is the Java development kit so I already downloaded that installation is pretty simple I'm not gonna go through all of that just go through the steps the next thing you're going to need is an IDE which stands for integrated development environment it doesn't really matter if you know two stands for but basically it's a fancy text editor there's two really common ones with Java one is Eclipse and the other is NetBeans so which one you choose is totally up to you I'm gonna go with eclipse because that's what I have experience with if you have NetBeans and that's what you use you should be okay to follow this series just the same but if you don't have anything I'd go with the Eclipse okay download I'm on Mac so I'm gonna go down here and click this download packages button and then you can see that the different options are over here on the right the one I'm gonna go with is this Eclipse IDE for Java developers and I'm gonna get the Mac version and I'm just gonna drag Eclipse into the applications and there we go we should have everything we need to start programming in Java so in your applications you can just look up eclipse there you go when you open eclipse it's going to ask you about a workspace and you can see it just stores your preferences and a bunch of other junk so I'm just gonna say that this is fine and that we can use this for all future occurrences all right when eclipse opens you're going to want to click create a new Java project in here you can name anything you want I'm gonna call it hello and then I'm just gonna click finish then I'm just gonna click don't create alright so you have your project open some of the different things you should know about in eclipse this thing over here the package Explorer this is where all your projects are gonna be and you can open them and look at all the files this is gonna be used quite often oh that's overwhelming good thing we don't really have to worry about any of that down here on the bottom is where your compilation errors and your warnings are gonna go so when you try to run something that will show up right here and then there's some other junk over here which I don't really care about so I'm just gonna click these little minus signs and get rid of those we can start working with our project by right-clicking it and clicking new class and then make sure you check this box public static void main string args so check that and what that does is basically say hey this is where we where I won my application to start then we can give it a name I'm just gonna call it my sweet program and then click finish all right and then double click it and here is our program so the first thing I want to do is I want to run the project so we can actually say hey we created our first application and then what I want to do is I want to break down some of this garbage in here so get rid of this line and replace it with system dot out dot print line and then put these parentheses and inside of these parentheses just say hello there okay so you have to copy this exactly including the capitalization so system starts with a capital letter and then a lowercase o and a lowercase P in a lowercase L so everything else is lowercase and we're gonna talk about all the capitalization and junk in this series so don't worry about it once you got that written you can save it by holding command s or if you're on Windows ctrl s and then going up here and clicking this play button and you can see it prints hello world inside of our console window the console window is where we're gonna be interacting with our program a lot is what we're gonna give input this is where we're gonna see our output and this is basically our application as you get better at Java you can then move on to user interfaces or you can move on to web applications which would serve like JavaScript and HTML and CSS and even you can do mobile applications you can do Android applications and there are even some things out there to help you make I phone apps with Java so the sky is the limit but for the basics it's always best just to start in console that is all I'm gonna talk about in this video in the next video we're gonna talk about every single piece of this code here so you have a good understanding of that foundation I feel like a lot of people just jump in and start writing stuff and you really don't understand what any of this means so hopefully by the end of that video you're gonna understand what every single one of these keywords means it might take some time to really you know understand it deeply but at least getting at that basic understanding that's all I got for you guys please be sure to check out the description for a link to the crash course as well as the blog and the sponsor print who is a super awesome so check all those out guys thank you and I'll see you in the next one [Music]
Info
Channel: Caleb Curry
Views: 313,835
Rating: 4.9215846 out of 5
Keywords: java programming, java, programming, tutorial 2, tutorial, installation, hello world, java tutorial, hello world program, code, coder, coding, how to, learn to code, beginner, how to code, caleb, curry, calebthevideomaker2
Id: Hdf5OmERt0g
Channel Id: undefined
Length: 5min 23sec (323 seconds)
Published: Mon Nov 26 2018
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.