Java Programming Tutorial – 4 – Hello YouTube

YouTube Preview Image

Thanks! Share it with your friends!

Close

How to write a basic hello world program

Comments

xCraigLV says:

is a method a function?

ben coombes says:

i always make a public class idk why

sandrannola says:

I am so glad I finally found the beginning tutorials Buck! I am using JGrasp but I think next semester we will be using NetBean or Eclipse. I can still follow. Love your examples! You are awesome!

thatcrazyjustin says:

Hey I was wondering why it says “class apples” in your eclipse, but in mine it has the public before class

316lga says:

theres an empty {} next to strings args……thats where the line “Syste,.out.ptintln(“Hello”); should be

Marty Taylor says:

I would like to know this as well

HazmishNuclear says:

Eat the fn cake! LoL 😀

EinstienJr says:

The best ever…..

Steven Brown says:

Does anyone have better steps for installing Eclipse on a Mac? It’s difficult to follow the tutorial to setup a new project because there are numerous screens presented that aren’t in the video. I’m using the 64-bit Eclipse Juno (4.2) SR1

kj Craft says:

Well, on your first line, you typed public class apples{ public static void main(String args[]){} those last two characters shouldn’t be together, your syntax should look like this, there are two bodies in your syntax:
public class Apples{ public static void main(String args[]){
System.out.println(“Hello”);
}
}

hatman28 says:

“void main(String args[]){} “, make it:

void main(String args[]){
System.out.println(“Hello”);
}

zanpaktuh says:

The “System.out.println(“Hello”);” should go inside the brackets.

It should be like this:

public class Apples{ public static void main(String args[]){
System.out.println(“Hello”);
} 
}

123unknownsoldier126 says:

public class Apples{
public static void main(String args[]){}
System.out.println(“Hello”);
}

It says to delete the token (“hello”) why?

programingteacher says:

hello everybody ! i know that most of you will ignore this but i guess i’ll give it a try.
i started uploading tutorials on my channel a while ago but due to the fact that i haven’t recieved vues i plan to stop making tutorials so please check out my channel and if you liked my videos and want me to keep uploading tutorials please suscribe please keep in mind that i plan to release tutorials on a rate of 1 video per 2days thanks for reading this.

Xenerus94 says:

It’s quite similar to Borlands Delphi (that’s the one, we learn in our school). Everything begins with procedure = class. Instead of {} there is begin and end.

Kjell Arne Hellum says:

haha wow, you guys creep me out

polishboy810 says:

i see what you did there mighty elf

UltimateRecursion says:

DEJA VU

UltimateRecursion says:

Yes, you can use whatever program you want. As long as it supports text editing, it should work. Even using Microsoft Notepad works. The only problem is that you have to run command prompt, then locate the .java file, then compile it to .class, then finally you can run it. I would recommend sticking to Eclipse, as it might make things easier to understand, since ‘Greg’ is teaching Java with it.

Safhata says:

Any program that is compatible with java can be used for java programming. I use Netbeans IDE 7.2 and haven’t had any problems so far.

Clint Fullido says:

Can I use Blue J rather than Eclipse??


Bhavya Aggarwal says:

can a class be static?

fortawesomm says:

The way you read “Editors” is like “Ediders”

ThisFrickinSite says:

he almost always sounds like that.

phillyboyatn says:

you sound a little intoxicated while making this video

Itay Karo says:

You can just right click on where the numbers should be and click on “Show line numbers” 🙂

Kanchoba says:

Oh… Ok. Wait…=0

Johan Liebert says:

fn = f’ing = fucking

crazyskullguy says:

Dude, your tutorial is great so far. GOOD WORK!
May Elune light ur path

Kanchoba says:

What is ‘fn’? function? What is function cake?

Salman Khan says:

Can U Plz Tell Me That @ 3:00..
U Started The “Method Header” From.. void bakecake () {
}
Instead Of Writing The WHOLE.. public static void main (String args[]) {
}
WHY IS THAT SO…… ??? DOESN’T IT MAKE ANY DIFFERENCE…… ???
PLEASE REPLY…. & THANK U SO MUCH… U R SO HELPFUL….

Write a comment