Subscribe to extremeblueness' Blog        RSS Feed
-----

Methods, Arrays, and Strings, Oh My!

Icon 2 Comments
Well, in addition to making my prime number generator super efficient, I've now started to learn about methods, arrays, and strings.

Also, I've coded the integers for my text adventure:

public class MedievalTextAdventure {
    public static void main (String args[]) {
        boolean NOTE = false, HOUSE = false, TREASURE = false, HAMMER = false, FROGS = false, FISH = false, FISHINGROD = false, GOLD = false, DOCTOR = false, OLDKEY = false, BUTTERFLYNET = false, HOUSE1 = false, HOUSE2 = false, HOUSE3 = false, HOUSE4 = false, HOUSE5 = false, ABANDONEDHOUSE = false, LAKE1 = false, LAKE2 = false, LAKE3 = false, LAKE4 = false, LAKE5 = false, LAKE6 = false, DOCTORSHOUSE = false, FISHMONGERY = false, gamerunning = true;
    }
}

2 Comments On This Entry

Page 1 of 1

Ryano121 Icon

26 October 2012 - 05:42 AM
You may want to put what you have learned about arrays into practice in that code snippet :P
1

extremeblueness Icon

29 October 2012 - 05:40 PM
Except I don't know enough about strings and arrays to do user input yet. And that's the only place it'll come in handy.
0
Page 1 of 1

Trackbacks for this entry [ Trackback URL ]

There are no Trackbacks for this entry

May 2013

S M T W T F S
      1234
567891011
121314151617 18
19202122232425
262728293031 

Tags

    Recent Entries

    Recent Comments

    Search My Blog

    0 user(s) viewing

    0 Guests
    0 member(s)
    0 anonymous member(s)

    Categories