View previous topic :: View next topic |
Author |
Message |
ravicus Master Cheater
Reputation: 0
Joined: 16 Dec 2006 Posts: 464
|
Posted: Mon Mar 19, 2007 10:27 am Post subject: [Release]Simple Java Video Tutorial |
|
|
Hey guys, I made a tutorial for Java, I know it sucks, but if you havn't coded Java before, its something.
http://axusgames.110mb.com/java1.htm
_________________
|
|
Back to top |
|
 |
DeltaFlyer Grandmaster Cheater
Reputation: 0
Joined: 22 Jul 2006 Posts: 666
|
Posted: Mon Mar 19, 2007 4:26 pm Post subject: |
|
|
I REALLY don't think anyone would need a video tutorial to write a "hello world" program. The thousands of text tutorials on the net are enough.
_________________
Wow.... still working at 827... what's INCA thinking?
zomg l33t hax at this place (IE only). Over 150 people have used it, what are YOU waiting for? |
|
Back to top |
|
 |
ravicus Master Cheater
Reputation: 0
Joined: 16 Dec 2006 Posts: 464
|
Posted: Mon Mar 19, 2007 4:28 pm Post subject: |
|
|
K. I won't make any more tutorials then.
_________________
|
|
Back to top |
|
 |
DeltaFlyer Grandmaster Cheater
Reputation: 0
Joined: 22 Jul 2006 Posts: 666
|
Posted: Mon Mar 19, 2007 5:03 pm Post subject: |
|
|
Good, should save you some time for other stuff.
_________________
Wow.... still working at 827... what's INCA thinking?
zomg l33t hax at this place (IE only). Over 150 people have used it, what are YOU waiting for? |
|
Back to top |
|
 |
reignofsb Grandmaster Cheater Supreme
Reputation: 0
Joined: 09 Oct 2006 Posts: 1205 Location: no where
|
Posted: Sat Mar 24, 2007 10:35 am Post subject: |
|
|
no continue!
_________________
|
|
Back to top |
|
 |
--Pillboi-- Grandmaster Cheater Supreme
Reputation: 0
Joined: 06 Mar 2007 Posts: 1383 Location: I don't understand the question. Is this a 1 to 10 thing?
|
Posted: Sat Mar 24, 2007 12:03 pm Post subject: |
|
|
ravicus wrote: | K. I won't make any more tutorials then. |
Nooooo. Please don't stop. This really helped me. Although the program isn't very, well, eh, productive, it taught me the basics of Java. Thanks ravicus.
--Pillboi--
_________________
Enter darkness, leave the light, Here be nightmare, here be fright...
Earth and Water, Fire and Air. Prepare to meet a creature rare.
Enter now if you dare, Enter now the dragon's lair. |
|
Back to top |
|
 |
DeltaFlyer Grandmaster Cheater
Reputation: 0
Joined: 22 Jul 2006 Posts: 666
|
Posted: Sat Mar 24, 2007 12:18 pm Post subject: |
|
|
Basics of Java can be learned with the help of Google by finding other tutorials that are already written. Encouraging ravicus to write tutorials that have been done thousands times over would only encourage him to waste his time in creating something that would add to the pool of countless "Hello world" tutorials.
_________________
Wow.... still working at 827... what's INCA thinking?
zomg l33t hax at this place (IE only). Over 150 people have used it, what are YOU waiting for? |
|
Back to top |
|
 |
ravicus Master Cheater
Reputation: 0
Joined: 16 Dec 2006 Posts: 464
|
Posted: Sun Mar 25, 2007 4:40 pm Post subject: |
|
|
Yeah, I suggest buying a book. Did wonders for me. My latest program, a slot machine with ASCII SLOT MACHINE GRAPHICS!!!
Code: | //Import Dem Functions!
import java.util.Random;
import java.util.Scanner;
import static java.lang.System.out;
public class SlotMachine {
public static void main(String[] args) {
//Declare Dos Variables!
Scanner s = new Scanner(System.in);
Random slotspin = new Random();
int Slot1 = 0;
int Slot2 = 0;
int Slot3 = 0;
int coins = 10;
int bet = 0;
boolean playagain = true;
int round = 1;
int multiplier = 1;
int multedbet = 0;
int play2 = 0;
//Write dat code!
out.println ("Welcome to slot machine!");
out.println();
while (playagain == true) {
out.println ("You have " + coins + " coins.");
out.print ("Please place a bet: ");
bet = (s.nextInt());
out.println ();
while (bet > coins || bet <= 0 && bet != 1 && bet != 2 && bet != 3) {
out.print ("You entered an invalid number, please place a valid bet: ");
bet = (s.nextInt());
}
out.println ("Bet registered");
out.println ();
out.println ("Spinning Slots...");
Slot1 = slotspin.nextInt(3) + 1;
Slot2 = slotspin.nextInt(3) + 1;
Slot3 = slotspin.nextInt(3) + 1;
out.println ("_________");
out.println ("| |");
out.println ("| " + Slot1 + "|" + Slot2 + "|" + Slot3 + " |");
out.println ("|_______|");
if (Slot1 == Slot2 && Slot1 == Slot3 && Slot2 == Slot3) {
out.println ("You won round " + round);
round++;
multiplier = Slot1;
multedbet = (bet * multiplier + 10);
out.println ("The multiplier is " + multiplier + " and you get a 10 coin bonus so you get " + multedbet + " coins");
coins = coins + multedbet;
} else {
out.println ("You lost round " + round);
round++;
out.println ("You lost " + bet + " coins.");
coins = (coins - bet);
}
multiplier = 1;
multedbet = 0;
}
}
} |
_________________
|
|
Back to top |
|
 |
|