• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 12:33
CEST 18:33
KST 01:33
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
[ASL19] Finals Recap: Standing Tall9HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0TL Team Map Contest #5: Presented by Monster Energy6
Community News
Weekly Cups (June 30 - July 6): Classic Doubles2[BSL20] Non-Korean Championship 4x BSL + 4x China8Flash Announces Hiatus From ASL66Weekly Cups (June 23-29): Reynor in world title form?14FEL Cracov 2025 (July 27) - $8000 live event22
StarCraft 2
General
The SCII GOAT: A statistical Evaluation The GOAT ranking of GOAT rankings Weekly Cups (June 23-29): Reynor in world title form? Weekly Cups (June 30 - July 6): Classic Doubles Program: SC2 / XSplit / OBS Scene Switcher
Tourneys
RSL: Revival, a new crowdfunded tournament series FEL Cracov 2025 (July 27) - $8000 live event Sparkling Tuna Cup - Weekly Open Tournament WardiTV Mondays Korean Starcraft League Week 77
Strategy
How did i lose this ZvP, whats the proper response Simple Questions Simple Answers
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 481 Fear and Lava Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome Mutation # 478 Instant Karma
Brood War
General
Flash Announces Hiatus From ASL SC uni coach streams logging into betting site BW General Discussion BGH Auto Balance -> http://bghmmr.eu/ ASL20 Preliminary Maps
Tourneys
[BSL20] Grand Finals - Sunday 20:00 CET CSL Xiamen International Invitational [BSL20] Non-Korean Championship 4x BSL + 4x China The Casual Games of the Week Thread
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Nintendo Switch Thread Stormgate/Frost Giant Megathread Path of Exile What do you want from future RTS games? Beyond All Reason
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Stop Killing Games - European Citizens Initiative Summer Games Done Quick 2024! Summer Games Done Quick 2025!
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [\m/] Heavy Metal Thread
Sports
Formula 1 Discussion 2024 - 2025 Football Thread NBA General Discussion TeamLiquid Health and Fitness Initiative For 2023 NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
Culture Clash in Video Games…
TrAiDoS
from making sc maps to makin…
Husyelt
Blog #2
tankgirl
StarCraft improvement
iopq
Trip to the Zoo
micronesia
Customize Sidebar...

Website Feedback

Closed Threads



Active: 635 users

[Help] Learning Java - Page 2

Blogs > Coagulation
Post a Reply
Prev 1 2 All
vek
Profile Joined March 2010
Australia936 Posts
Last Edited: 2011-01-30 04:16:31
January 30 2011 04:07 GMT
#21
Well I'd recommend Eclipse. Messing around with classpaths and all that junk can come later when it's important and you have a reason to. If you want to jump into coding and learning OOP then get an IDE and go mad. I included a quick tutorial that should get you started:

I first learned java on Eclipse and still use Eclipse for work today. It is very easy for a beginner to work with because you can ignore all the advanced functions and just use what you need.

Okay first you obviously want to install eclipse and the JDK:
http://www.oracle.com/technetwork/java/javase/downloads/index.html (Download JDK)
http://www.eclipse.org/downloads/ (Eclipse IDE for Java Developers)

When you first start it up you'll see something like this and possibly something asking about a workspace location:
+ Show Spoiler +
[image loading]


Now I remember when I first started out I just said to myself what is this shit. The trick is just to close it and get to the workbench. If you are asked to specify a workspace just pick a sensible location. The default it suggests is probably fine. A workspace is a bunch of folders that contain things like:
- Eclipse settings/preferences
- Your projects

For example if you were doing work at school and at home I'd have my workspace on a USB drive and point eclipse to that workspace.

Onto the next screen.

Your workbench should look somewhat like this. Your package explorer on the left, editor in the center and console down the bottom.

If you want to write some code the first thing is making a new project. Right click on some blank space in your package explorer and go to new > java project.
+ Show Spoiler +
[image loading]


Fill out the project name and hit finish. You can ignore the rest of the advanced options.
+ Show Spoiler +
[image loading]


Now we want to make a class. It's important to always make sure your classes start with a CapitalLetterLikeThis and that the class name share the name of the CapitalLetterLikeThis.java file.

Right click on the src folder > new > class.
+ Show Spoiler +
[image loading]


Name the class HelloWorld and hit finish. You could also optionally tick the auto main method generation but that's just lazy
+ Show Spoiler +
[image loading]


Here you can type your code into the editor. I just did a simple "hello world". Once you are done and providing there are no syntax errors you can hit the "play" button to run your application. The output will appear in the lower part of your screen in the "console" tab.

If you manage to create a program that goes into an infinite loop you can hit the stop button to terminate it.
+ Show Spoiler +
[image loading]


That's pretty much it for my simple Eclipse tutorial

I'll give you one last tip though. Since you'll be writing a lot of console based applications in the beginning you'll have to write System.out.println a lot and as you can guess this is pretty annoying. Luckily Eclipse is awesome. You can just write the shorthand version "sysout", hit CTRL+Space and Eclipse will do the rest.

[image loading]

Hope this helps. I know other people suggest Netbeans but I've never liked it. I found Eclipse is easier to get started with and more flexible in the long run.

Edit: spoilered big images cause my post ended up way bigger than I expected D:
Coagulation
Profile Blog Joined July 2006
United States9633 Posts
Last Edited: 2011-01-30 04:56:38
January 30 2011 04:49 GMT
#22
wow thanks for the step by step vek
i will download eclipse and see if its any more user friendly.

so far i have made a calculator in netbeans using a guide.
djcube
Profile Blog Joined July 2009
United States985 Posts
January 30 2011 04:54 GMT
#23
On January 30 2011 13:49 Coagulation wrote:
wow thanks for the step by step vek
i will download eclipse and see if its any more user friendly.

so far i have made a calculator innetbeans using a guide.

Hah like a full blown calculator with a gui? That's pretty advanced for having just started coding
Disregard
Profile Blog Joined March 2007
China10252 Posts
January 30 2011 05:13 GMT
#24
On January 30 2011 13:49 Coagulation wrote:
wow thanks for the step by step vek
i will download eclipse and see if its any more user friendly.

so far i have made a calculator in netbeans using a guide.


Awesome, if I wouldve written something like that for practice... Probably be a million lines of code, still trying to find my "style". Pretty much still lack experience in efficiently optimizing code and maybe I should just focus on one language instead of trying to learn multiple like some wannabe brainiac.

Though its fun once you get into it but sometimes I go on a brief hiatus, I havent practiced the past 2 weeks after going on a 1 month winter break.
"If I had to take a drug in order to be free, I'm screwed. Freedom exists in the mind, otherwise it doesn't exist."
gravity
Profile Joined March 2004
Australia1847 Posts
Last Edited: 2011-01-30 08:29:52
January 30 2011 08:28 GMT
#25
If you have never done any sort of programming before I'd recommend following this free Python book/tutorial rather than using Java:

http://learnpythonthehardway.org/index

edit: Sounds like you're off to an ok start though, if you can make a calculator already (and understand what you're doing) then the above book may be too simple .
Deleted User 61629
Profile Blog Joined March 2010
1664 Posts
Last Edited: 2011-01-30 10:17:32
January 30 2011 10:16 GMT
#26
--- Nuked ---
Entropic
Profile Blog Joined May 2009
Canada2837 Posts
January 30 2011 10:38 GMT
#27
On January 30 2011 17:28 gravity wrote:
If you have never done any sort of programming before I'd recommend following this free Python book/tutorial rather than using Java:

http://learnpythonthehardway.org/index

edit: Sounds like you're off to an ok start though, if you can make a calculator already (and understand what you're doing) then the above book may be too simple .


Thanks for the link, was looking for some nice tutorials for total (like last place bronze league) noobs in programming like me.
Disregard
Profile Blog Joined March 2007
China10252 Posts
January 30 2011 11:11 GMT
#28
On January 30 2011 19:16 Inori wrote:
Show nested quote +
On January 30 2011 08:12 Coagulation wrote:
I have been wanting to get into learning coding (simple stuff )and from what i understand java is a good start point.

???????
Out of all the languages out there for "simple stuff", you choose Java? What, Ruby, Python, PHP and etc were too hard for you?

On a serious note, after Oracle bought Sun, I wouldn't recommend anyone learning Java, simple stuff or not. It will be going downhill, just like MySQL is already. Trust me.


Im finding more and more people telling me this, too bad my uni decided to do Java instead of the usual C++ or Python this year... I have to continue and complete this last course before I move on. Though Im trying to teach myself C++.
"If I had to take a drug in order to be free, I'm screwed. Freedom exists in the mind, otherwise it doesn't exist."
Finskie
Profile Blog Joined March 2010
Sweden412 Posts
January 30 2011 12:48 GMT
#29
Dont chose Java. Please. You will thank me later. Go C++/C# or Python. I'd rather have learned even Bash than fucking Java. If you must, go for Eclipse for coding.
Violet.
fanta[Rn]
Profile Blog Joined October 2004
Japan2465 Posts
January 30 2011 14:33 GMT
#30
Java is not so bad, makes transition to other languages also quite easy.

C# is probably better though
djcube
Profile Blog Joined July 2009
United States985 Posts
January 30 2011 14:57 GMT
#31
Yeah I'm no expert or anything, but like fanta said, I learned Java first and it was pretty easy learning other languages after wards.

I'm curious (as someone who wants to learn more about the field) why Java gets so much hate?
fabiano
Profile Blog Joined August 2009
Brazil4644 Posts
January 30 2011 15:01 GMT
#32
Because Oracle bought Sun.

Once you learn the OO paradigm, no matter the language you learnt first, its going to be an easy transition to any other OO language.

Also, Java isn't going downhill so fast. The Android platform is growing strong, Java is still a good language to have in your curriculum.
"When the geyser died, a probe came out" - SirJolt
berated-
Profile Blog Joined February 2007
United States1134 Posts
Last Edited: 2011-02-05 02:17:25
February 05 2011 02:15 GMT
#33
On January 31 2011 00:01 fabiano wrote:
Because Oracle bought Sun.

Once you learn the OO paradigm, no matter the language you learnt first, its going to be an easy transition to any other OO language.

Also, Java isn't going downhill so fast. The Android platform is growing strong, Java is still a good language to have in your curriculum.


Even though oracle is trying to screw us all there are still open source alternatives like open JDK. As long as oracle's tactics don't divide java into a bunch of different flavors everything will be okay.

And I totally agree -- java isn't going anywhere - but I might be biased because my future depends on it . . .
Cloud
Profile Blog Joined November 2004
Sexico5880 Posts
Last Edited: 2011-02-05 04:07:50
February 05 2011 04:02 GMT
#34
I think you should learn Python or Scheme instead. Python is easy to learn and very powerful, more so than Java, also object-oriented if that's what you're aiming for. Scheme completely lacks syntax and so you can focus on actually learning about programming instead of bothering yourself with learning syntax rules and is very powerful as well. Java is way too verbose and its power comes from the huge number of libraries and tools like Eclipse or Netbeans and that in a way teaches you bad habits if it's your first language.

The best book for Scheme I think is The little schemer, SICP is probably better for depth but a little
too difficult and heavy to start in my opinion (it's a weedout introductory course by MIT).
It's easier to find a python book, surf the web or go to your local library and look for o'reilly introductory Python books.

Here's an article that may be of interest to you: http://www.catb.org/~esr/faqs/hacker-howto.html

You should stay away from c/c++ at the moment, they're just not powerful enough and they only serve specific purposes. Python and scheme(lisp) are much more general purpose.
BlueLaguna on West, msg for game.
vijayaustin
Profile Joined January 2019
1 Post
January 26 2019 13:01 GMT
#35
--- Nuked ---
rojaraja
Profile Joined January 2019
1 Post
January 30 2019 06:31 GMT
#36
--- Nuked ---
Prev 1 2 All
Please log in or register to reply.
Live Events Refresh
RotterdaM Event
16:00
Rotti Stream Rumble 4k Edition
RotterdaM443
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
mouzHeroMarine 762
RotterdaM 443
Hui .338
MaxPax 330
StarCraft: Brood War
Bisu 1963
EffOrt 1327
Flash 1236
Jaedong 1157
Hyuk 792
Stork 374
actioN 369
Soma 289
Soulkey 243
firebathero 173
[ Show more ]
Snow 171
Mind 99
JulyZerg 66
sSak 64
Barracks 60
TY 58
Sharp 48
Terrorterran 45
PianO 43
JYJ43
Rock 32
Yoon 24
HiyA 21
yabsab 17
Aegong 17
soO 16
GoRush 9
Shine 8
IntoTheRainbow 7
Dota 2
Gorgc6615
qojqva3321
League of Legends
singsing2243
Dendi1253
Counter-Strike
fl0m1160
markeloff169
Super Smash Bros
Mew2King257
Other Games
hiko1581
Beastyqt844
ceh9337
Lowko301
crisheroes248
ArmadaUGS149
KnowMe138
Trikslyr62
PGG 1
Organizations
Other Games
gamesdonequick47269
StarCraft 2
angryscii 21
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• Reevou 6
• intothetv
• AfreecaTV YouTube
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• Michael_bg 2
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Nemesis6915
• Jankos912
• TFBlade845
Other Games
• Shiphtur333
Upcoming Events
Replay Cast
7h 28m
Sparkling Tuna Cup
17h 28m
WardiTV European League
23h 28m
MaNa vs sebesdes
Mixu vs Fjant
ByuN vs HeRoMaRinE
ShoWTimE vs goblin
Gerald vs Babymarine
Krystianer vs YoungYakov
PiGosaur Monday
1d 7h
The PondCast
1d 17h
WardiTV European League
1d 19h
Jumy vs NightPhoenix
Percival vs Nicoract
ArT vs HiGhDrA
MaxPax vs Harstem
Scarlett vs Shameless
SKillous vs uThermal
uThermal 2v2 Circuit
1d 23h
Replay Cast
2 days
RSL Revival
2 days
ByuN vs SHIN
Clem vs Reynor
Replay Cast
3 days
[ Show More ]
RSL Revival
3 days
Classic vs Cure
FEL
3 days
RSL Revival
4 days
FEL
4 days
FEL
4 days
BSL20 Non-Korean Champi…
5 days
Bonyth vs QiaoGege
Dewalt vs Fengzi
Hawk vs Zhanhun
Sziky vs Mihu
Mihu vs QiaoGege
Zhanhun vs Sziky
Fengzi vs Hawk
Sparkling Tuna Cup
5 days
RSL Revival
5 days
FEL
5 days
BSL20 Non-Korean Champi…
6 days
Bonyth vs Dewalt
QiaoGege vs Dewalt
Hawk vs Bonyth
Sziky vs Fengzi
Mihu vs Zhanhun
QiaoGege vs Zhanhun
Fengzi vs Mihu
Liquipedia Results

Completed

BSL Season 20
HSC XXVII
Heroes 10 EU

Ongoing

JPL Season 2
BSL 2v2 Season 3
Acropolis #3
KCM Race Survival 2025 Season 2
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
Jiahua Invitational
Championship of Russia 2025
RSL Revival: Season 1
Murky Cup #2
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
BLAST Rivals Spring 2025
MESA Nomadic Masters
CCT Season 2 Global Finals
IEM Melbourne 2025

Upcoming

2025 ACS Season 2: Qualifier
CSLPRO Last Chance 2025
CSL Xiamen Invitational
2025 ACS Season 2
CSLPRO Chat StarLAN 3
K-Championship
uThermal 2v2 Main Event
SEL Season 2 Championship
FEL Cracov 2025
Esports World Cup 2025
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.