Author Topic: My first Java program!  (Read 8835 times)

0 Members and 1 Guest are viewing this topic.

Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
My first Java program!
« on: December 17, 2011, 12:40:07 pm »
HA HA! learning Java makes me go back to when I was learning axe, and basic...I feel like a noob! Anyways, this is the very first thing I did with java...ever.....yep :) at least I got some of the text down!
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: My first Java program!
« Reply #1 on: December 17, 2011, 12:43:53 pm »
You misspelled Hello World :P
Well, nice, I wish I could program java......

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
Re: My first Java program!
« Reply #2 on: December 17, 2011, 12:45:16 pm »
lol, Omnimaga trumps world :w00t: and yeah that was just exercise one in a book on java I'm going through.....I figure it's time I learn a computer language
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline ben_g

  • Hey cool I can set a custom title now :)
  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +125/-4
  • Asm noob
    • View Profile
    • Our programmer's team: GameCommandoSquad
Re: My first Java program!
« Reply #3 on: December 17, 2011, 12:52:02 pm »
The first thing you do and already with a window. Good job! I used the console in my first java programs untill I fully understood the math stuff.
My projects
 - The Lost Survivors (Unreal Engine) ACTIVE [GameCommandoSquad main project]
 - Oxo, with single-calc multiplayer and AI (axe) RELEASED (screenshot) (topic)
 - An android version of oxo (java)  ACTIVE
 - A 3D collision detection library (axe) RELEASED! (topic)(screenshot)(more recent screenshot)(screenshot of it being used in a tilemapper)
Spoiler For inactive:
- A first person shooter with a polygon-based 3d engine. (z80, will probably be recoded in axe using GLib) ON HOLD (screenshot)
 - A java MORPG. (pc) DEEP COMA(read more)(screenshot)
 - a minecraft game in axe DEAD (source code available)
 - a 3D racing game (axe) ON HOLD (outdated screenshot of asm version)

This signature was last updated on 20/04/2015 and may be outdated

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: My first Java program!
« Reply #4 on: December 17, 2011, 03:33:13 pm »
@ben_g That's the console output of the program being shown in the window of BlueJ, the IDE he's using.
@saintrunner congrats. As a first computer language, Java is pretty good. It's not too difficult, and it's C-based, so that's good. Another great computer language is Python (python.org). It is an extremely powerful interpreted language. I like it a lot. It's also the only language Julie B. (she's in band) knows, so you can ask her about it. I think there's also a section here in the forums for it.
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results:





Offline Spyro543

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1189
  • Rating: +74/-3
    • View Profile
Re: My first Java program!
« Reply #5 on: December 17, 2011, 04:15:32 pm »
Yes, Python is awesome. I would also suggest learning C++ (I may write a tutorial on it sometime).

Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
Re: My first Java program!
« Reply #6 on: December 17, 2011, 04:25:27 pm »
@ben_g That's the console output of the program being shown in the window of BlueJ, the IDE he's using.
@saintrunner congrats. As a first computer language, Java is pretty good. It's not too difficult, and it's C-based, so that's good. Another great computer language is Python (python.org). It is an extremely powerful interpreted language. I like it a lot. It's also the only language Julie B. (she's in band) knows, so you can ask her about it. I think there's also a section here in the forums for it.

yeah I know Julie, I had English with her last year. And I'll ask here about it :) thanks
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline obon7

  • LV2 Member (Next: 40)
  • **
  • Posts: 34
  • Rating: +1/-1
    • View Profile
Re: My first Java program!
« Reply #7 on: December 17, 2011, 04:32:10 pm »
Yay finally someone else in interested is making games for the PC
« Last Edit: December 17, 2011, 04:32:29 pm by obon7 »

Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
Re: My first Java program!
« Reply #8 on: December 17, 2011, 04:42:32 pm »
It's actually for a friend who needs someone capable of making computer games, but i'm a long way away from any games.....I can just make it stay stuff
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
Re: My first Java program!
« Reply #9 on: December 18, 2011, 04:42:29 pm »
YEAH! second Java program! too calculate the area of a circle!!
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: My first Java program!
« Reply #10 on: December 18, 2011, 05:25:29 pm »
Awesome stuff!  I remember taking Java in High School, and our first programs were console.

Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
Re: My first Java program!
« Reply #11 on: December 18, 2011, 05:26:29 pm »
I'm just using bluej....I have no idea how to do it any other way yet lol...wish I did
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline hellninjas

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 625
  • Rating: +17/-0
    • View Profile
Re: My first Java program!
« Reply #12 on: January 15, 2012, 07:58:06 pm »
Nice |:D seems like your getting the basics down!
Good Luck :D

Offline ben_g

  • Hey cool I can set a custom title now :)
  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +125/-4
  • Asm noob
    • View Profile
    • Our programmer's team: GameCommandoSquad
Re: My first Java program!
« Reply #13 on: January 17, 2012, 04:16:30 pm »
When you are ready to move over to applets, this is a good tutorial. It's a simple tutorial, but first you should really understand the basics.
My projects
 - The Lost Survivors (Unreal Engine) ACTIVE [GameCommandoSquad main project]
 - Oxo, with single-calc multiplayer and AI (axe) RELEASED (screenshot) (topic)
 - An android version of oxo (java)  ACTIVE
 - A 3D collision detection library (axe) RELEASED! (topic)(screenshot)(more recent screenshot)(screenshot of it being used in a tilemapper)
Spoiler For inactive:
- A first person shooter with a polygon-based 3d engine. (z80, will probably be recoded in axe using GLib) ON HOLD (screenshot)
 - A java MORPG. (pc) DEEP COMA(read more)(screenshot)
 - a minecraft game in axe DEAD (source code available)
 - a 3D racing game (axe) ON HOLD (outdated screenshot of asm version)

This signature was last updated on 20/04/2015 and may be outdated

Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
Re: My first Java program!
« Reply #14 on: January 17, 2012, 04:17:56 pm »
Thanks :)
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES: