Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (121)
games submitted by our members
Games in WIP (577)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Need to clarify the meanings  (Read 2452 times)
0 Members and 1 Guest are viewing this topic.
Offline Roys000

Senior Newbie





« Posted 2010-11-19 11:56:14 »

Ummm hi i was looking through java tutorials and btw im a newbie.

ok i saw this line

    public static void main(String[] args) {

I dont know what it means and what it does can someone explain it in simple terms for me?

And theres also some terms i dont know such as,

-Classes(What are they?)
-Library(What is this library that they are referring to)
-Arguments(they gave me some examples such as args)
-Modifers(they said something about public and static)

Can someone kindly explain to me this in simple terms? i need Help im stuck D:
Online princec

JGO Kernel


Medals: 409
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #1 - Posted 2010-11-19 12:25:12 »

Have you actually read anything? At all?

Cas Smiley

Offline CaptainJester

JGO Knight


Medals: 12
Projects: 2
Exp: 14 years


Make it work; make it better.


« Reply #2 - Posted 2010-11-19 12:29:27 »

The Java Tutorial

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Roys000

Senior Newbie





« Reply #3 - Posted 2010-11-19 12:31:23 »

http://download.oracle.com/javase/tutorial/getStarted/application/index.html#COMMENTS


This page and im stuck D:
Online princec

JGO Kernel


Medals: 409
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #4 - Posted 2010-11-19 12:33:20 »

I don't know how you expect us to help you if that page can't explain it.

Cas Smiley

Offline Roys000

Senior Newbie





« Reply #5 - Posted 2010-11-19 13:02:40 »

ummm well i just dont know whats the meaning of class and libraries . just the terms i mention i mean...because they never tell me what is the meaning of it in java... well...

so i just need to know the meanings  Undecided
Online princec

JGO Kernel


Medals: 409
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #6 - Posted 2010-11-19 13:05:04 »

Read this: http://en.wikipedia.org/wiki/Object-oriented_programming

Cas Smiley

Offline Roys000

Senior Newbie





« Reply #7 - Posted 2010-11-19 13:07:13 »

Oh Cool! it helps alot THANKS!!!!!!!!  Smiley
Offline OttoMeier
« Reply #8 - Posted 2010-11-20 04:56:45 »

From my own experience: Dont start programming with gamedevelopment try to find samething easiers eg. simple but usefull tools like paint.
Offline appel

JGO Wizard


Medals: 51
Projects: 4


I always win!


« Reply #9 - Posted 2010-11-20 11:59:31 »

If you're learning to drive, would you head out to the Formula-1 and learn to drive one of those cars first?

I'm not saying it can't be done, but geez... there are better ways.

There's absolutely no way you can start programming games in Java before you can grasp the fundamentals of programming in Java.

You should find some book like "Beginning Java programming" or "Java programming for beginners" and do simple command prompt programs, then start doing simple Java2D stuff, and then climb that ladder of technologies.

 Roll Eyes

Check out the 4K competition @ www.java4k.com
Check out GAMADU (my own site) @ http://gamadu.com/
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline JL235

JGO Coder


Medals: 10



« Reply #10 - Posted 2010-11-20 17:15:25 »

There's absolutely no way you can start programming games in Java before you can grasp the fundamentals of programming in Java.
I built games when I started programming. In my first week of programming I followed a tutorial to build a simple FPS and after only another week I had a world map (with a building), could move & look around, some collisions and a gun floating in front of the camera. The results were simplistic and the language I used had a very simple 3D engine in-built which did most of the hard work (like I didn't know how to perform simple collisions until after another month) but from a beginner point of view it's awesome when your able to build something like that very quickly.

Plus there are also tonnes of "learn to program with game development" style books. I personally think they tend to be terrible books not because they are too difficult but because they are too simple.

If done right, game development is one of the best methods for teaching people to program. At least it's more exciting then building example apps for doing dull stuff like converting centimetres to inches.

Quote from: Roys000
ok i saw this line

    public static void main(String[] args) {

I dont know what it means and what it does can someone explain it in simple terms for me?
When your Java program runs it needs to know where to start, an entry point for your program. To do this there is a common 'signature' that the entry point takes and that is the 'private static void main(String[] args)' method above. All of that is required for the entry point to work, if any of it is missing then Java will not think it's the entry point of your program. A quick cooks tour of what all those keywords do are:

'public' means it can be accessed by any part of the program. Until you fully understand what public does, and what it's alternatives (private, protected and package-private) do, you should just always start your methods with the 'public' keyword.

'static' is optional and means it's class-wide, but I wouldn't worry too much about this yet (you should learn more about classes first).

Next some functions return a value, so when you call them you get something back. If they don't return a value they have the return type 'void'.

'main' is the name of the function. The entry point must be called main, but when you define other functions you can give them other names.

The '(String[] args)' is the parameter that is passed into the application when it's started. The 'String[]' is the type of the parameter and 'args' is the name of the parameter variable. The '[]' bit means it's an array and 'String' means the array can only hold Strings. Finally a String is essentially a piece of text.

Offline Roys000

Senior Newbie





« Reply #11 - Posted 2010-11-26 06:52:30 »

well haha, i think im really a noob.

well ok a few more questions, please bear with me D:

what is parameters,conventions and variables? i keep googling and i still cant understand...



And i came across this word 'int' when i was reading some tut on java,in google they put 'int' is an integer.An integer is a whole number.

but i dont see what the word 'int' does in java programming. any simple explanation on this?

one example: int cadence = 0;
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 818
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #12 - Posted 2010-11-26 08:47:12 »

As you have been told by others: this approach won't get you anywhere. Buy a book. Don't flip the page until you understand what is written.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline Nate

JGO Kernel


Medals: 150
Projects: 4
Exp: 14 years


Esoteric Software


« Reply #13 - Posted 2010-11-27 08:49:15 »

I'd like to learn something, but I don't know it yet. What should I do?

Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #14 - Posted 2010-12-01 20:11:48 »

I'd like to learn something, but I don't know it yet. What should I do?
Have someone else tell you what to learn, of course.

See my work:
OTC Software
Online princec

JGO Kernel


Medals: 409
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #15 - Posted 2010-12-01 21:05:39 »

Good thing I didn't come across this thread first today.

Cas Smiley

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

theagentd (15 views)
2014-10-25 15:46:29

Longarmx (52 views)
2014-10-17 03:59:02

Norakomi (45 views)
2014-10-16 15:22:06

Norakomi (34 views)
2014-10-16 15:20:20

lcass (39 views)
2014-10-15 16:18:58

TehJavaDev (68 views)
2014-10-14 00:39:48

TehJavaDev (68 views)
2014-10-14 00:35:47

TehJavaDev (60 views)
2014-10-14 00:32:37

BurntPizza (74 views)
2014-10-11 23:24:42

BurntPizza (45 views)
2014-10-11 23:10:45
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!