Hello World in Java using NetBeans

preview_player
Показать описание
How to write a basic, Hello World Java application in NetBeans.
Рекомендации по теме
Комментарии
Автор

I couldn't get it to work at first on eclipse, so I had decide to install Netbeans and follow this video; it turns out i was putting printin(with capital i) instead of a lowercase L. It shouldn't have taken me an hour to make this program but it did. Thank you for making this video -- and a thumbs up for you

cripkre
Автор

this is simple and cool i love netBeans IDE so much

jhpk
Автор

Thanks for this helpful video I wasn't sure how the heck to get started, and my instructor wasn't as helpful or informative as he thought he was lol

IWeasel
Автор

i love your explanation, you are the best in youtube.keep it up

austinchiboy
Автор

Hello I have a mini problem the program runs successfully but in the output I dont have my hello world and the total time building is 0 seconds

salahragnar
Автор

i got it.
run:
Hello World!
BUILD SUCCESSFUL (total time: 1 second)

redpilledpatriot
Автор

Good example, please share API by using GUI in java netbeans of any program. thank you advance

genesiscereno
Автор

Brandon Grasley Why did it import "helloworld" package in your program? What's that got to do with the HelloWorld class that you created? I am asking because, it's a simple class that doesn't need to import anything. Would you please explain what the helloworld package does for the program?

sting
Автор

I press the run button, but it says <No main classes found>. Also, I have no autocomplete.

PeliPelaaja
Автор

package com.java21days;

public class Variables {

public static void main (String[] arguments) {
final chat UP = 'U';
byte initialLeve1 = 12;
short location = 13250;
int score = 3500100;
boolean newGame = true;

System.out.println("leve1: " + initialLeve1);
System.out.println("Up: " + UP);
}
}
this is my code and when I heat run it just displays:
run:
Hello, World!
BUILD SUCCESSFUL (total time: 0 seconds)
PLEASE HELP

JoseMorales-vvfx
Автор

How do i get the output into a command prompt?

WolfsRainESP
Автор

Super amateur question but does the total time it takes to run it have any relevance? because mine says it took only 0 seconds, is that just because of my beefy computer or something else?

SufalDeb
Автор

/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package helloworld;

/**
*
* @author name
*/
public class Helloworld {

/**
* @param args the command line arguments - these are unused
*/
public static void main(String[] args) {
System.out.println("Hello, World!");
}

}

redpilledpatriot
Автор

someone please tell me what the fuck is wrong with my code becuase when i click run i get a error

redpilledpatriot