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

Timers and songs

Icon 2 Comments
Well, I did an assignment for my programming class. The assignment was to make programs for your favorite and least favorite songs.

Here's a little bit of the code from each:

System.out.print(" time");
        try
        {
            Thread.sleep(370L);
        }
        catch (Exception e) {}
        System.out.print(" to");
        try
        {
            Thread.sleep(350L);
        }
        catch (Exception e) {}
        System.out.print(" live");
        try
        {
            Thread.sleep(380L);
        }
        catch (Exception e) {}
        System.out.print(" it");
        try
        {
            Thread.sleep(350L);
        }
        catch (Exception e) {}
        System.out.println(" out");


System.out.print("Its");
            try
            {
                 Thread.sleep(400L);
            }
            catch (Exception e) {}
            System.out.print(" a");
            try
            {
                Thread.sleep(380L);
            }
            catch (Exception e) {}
            System.out.print(" small");
            try
            {
                Thread.sleep(400L);
            }
            catch (Exception e) {}


The reason I don't give you the whole code is because the first (my favorite song) program is something like 1200 lines of code.

2 Comments On This Entry

Page 1 of 1

Ryano121 Icon

04 November 2012 - 09:12 AM
Ever heard of methods? :P
0

extremeblueness Icon

05 November 2012 - 06:09 PM
Don't really like them.
0
Page 1 of 1

Trackbacks for this entry [ Trackback URL ]

There are no Trackbacks for this entry

December 2014

S M T W T F S
 123456
78910111213
14151617181920
21222324252627
28 293031   

Tags

    Recent Entries

    Recent Comments

    Search My Blog

    0 user(s) viewing

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

    Categories