Engineeringserver.com

A community for computer science students & developers about software development, game development, game design, games, anime preview & reviews and more!

Archive for April, 2008


How to create a 2d array

1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 5 out of 5)
Loading ... Loading ...
3,341 views

In this example i’m showing you how to create a 2d array ( Two Dimensional Array )

First you must declare a 2d String array like this:
String[][] personHolder = new String[3][4]This means that the string can hold 3 items and in each of the item it can hold 4 other items.

After that add data to the string array like this:
personHolder[1][0] = “Amber”;
personHolder[1][1] = “F”;
personHolder[1][2] = “12 April 1992″;
personHolder[1][3] = “Single”;

To show the 2d array you can create a for loop to display the contents of the array like this:
for(int i = 1; i < 3; i++){
for(int j = 0; j <= personHolder.length; j++){
System.out.println(personHolder[0][j] + ” ” + personHolder[i][j]);
}
System.out.println();
}

Sourcecode:
public class TwoDimensionalArray {
public static void main(String[] args){
String[][] personHolder = new String[3][4];
personHolder[0][0] = “Name: \t”;
personHolder[0][1] = “Gender: \t”;
personHolder[0][2] = “Day Of Birth:\t”;
personHolder[0][3] = “Status: \t”;
personHolder[1][0] = “Amber”;
personHolder[1][1] = “F”;
personHolder[1][2] = “12 April 1992″;
personHolder[1][3] = “Single”;
personHolder[2][0] = “Peter”;
personHolder[2][1] = “M”;
personHolder[2][2] = “12 April 1980″;
personHolder[2][3] = “Married”;
//loop starts at one because you only want to show the persons
for(int i = 1; i < 3; i++){
for(int j = 0; j <= personHolder.length; j++){
System.out.println(personHolder[0][j] + ” ” + personHolder[i][j]);
}
System.out.println();
}
}
}

Output:
Name: Amber
Gender: F
Day Of Birth: 12 April 1992
Status: Single

Name: Peter
Gender: M
Day Of Birth: 12 April 1980
Status: Married

Download the sourcecode here: http://www.freefilehost.co.uk/191377
password: engineeringserver.com

Bookmark this page: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • De.lirio.us
  • Slashdot
  • StumbleUpon
  • Technorati
  • Reddit
  • Digg

Your Ad Here

Record games with WeGame

1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 4.5 out of 5)
Loading ... Loading ...
2,344 views

WeGame is an application that enables users to create gamevideo’s and publish it on their site and share it with other users. The application is similiar to Fraps but the difference is that this is a free application.

So basically If you want to show your gaming skills to other people just get it now and record your games!

Download WeGame:
http://www.wegame.com/download/

Supported games:
America’s Army Audiosurf Battlefield 2 Battlefield 2142 C&C 3 Call of Duty 2 Call of Duty 4 CoH Series Company of Heroes Counter-Strike 1.6 Counter-Strike: Source Crysis Dawn of War DoD: Source EVE Online Everquest 2 FEAR Garry’s Mod GTA Series Guild Wars Half-Life Half-Life 2 Half-Life 2 Mods Half-Life Mods Halo Hellgate London LotR Online Misc Gaming Oblivion Portal Quake Series Second Life Silkroad Online STALKER Supreme Commander SW Galaxies Team Fortress 2 Trackmania Nations War Rock Warcraft 3 Wolfenstein: ET World of Warcraft

    Bookmark this page: These icons link to social bookmarking sites where readers can share and discover new web pages.
    • del.icio.us
    • De.lirio.us
    • Slashdot
    • StumbleUpon
    • Technorati
    • Reddit
    • Digg

    Your Ad Here

    Code geass episode 8

    1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 4.5 out of 5)
    Loading ... Loading ...
    336 views

    Bookmark this page: These icons link to social bookmarking sites where readers can share and discover new web pages.
    • del.icio.us
    • De.lirio.us
    • Slashdot
    • StumbleUpon
    • Technorati
    • Reddit
    • Digg

    Your Ad Here

    Code geass episode 7

    1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5 out of 5)
    Loading ... Loading ...
    385 views

    Bookmark this page: These icons link to social bookmarking sites where readers can share and discover new web pages.
    • del.icio.us
    • De.lirio.us
    • Slashdot
    • StumbleUpon
    • Technorati
    • Reddit
    • Digg

    Your Ad Here

    Code geass episode 6

    1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5 out of 5)
    Loading ... Loading ...
    382 views

    Bookmark this page: These icons link to social bookmarking sites where readers can share and discover new web pages.
    • del.icio.us
    • De.lirio.us
    • Slashdot
    • StumbleUpon
    • Technorati
    • Reddit
    • Digg

    Your Ad Here

    Macross Frontier episode 1/4

    1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5 out of 5)
    Loading ... Loading ...
    666 views

    Macross frontier episode 1/4 by Gattai fansubs

    Plot and overview

    The series celebrates the 25th anniversary of the original Super Dimension Fortress Macross TV series (1982~1983), and is chronologically subsequent to Macross 7 (1994~1996). This third TV series features Earth’s latest main variable fighter, the VF-25 and a new spaceship called the Macross Frontier. Two separate manga adaptations have been running in Shonen Ace and Comp Ace, since February 2008 and April 2008 respectively.[2]

    On the Macross timeline, the story is set on the year 2059. The series features the 25th colonial fleet, dubbed the Macross Frontier, en route near the galactic center.

    During a mission to an unexplored asteroid belt, a reconnaissance New U.N. Spacy (N.U.N.S.) VF-171 is destroyed by extremely powerful and fast insectoid biomechanical alien mecha known as the “Vajra”, (????)[1], which immediately begin their attack on the rest of the fleet. Not being able to stop the new enemy threat, the N.U.N.S. colonial defense forces authorize the deployment of a civilian military provider organization called S.M.S., which utilizes the new VF-25 variable fighter to destroy the alien menace.

    (Quoted from wikipedia)

    Download episode 1/4 (Torrent)
    Macross Frontier 1
    Macross Frontier 2
    Macross Frontier 3
    Macross Frontier 4

    Bookmark this page: These icons link to social bookmarking sites where readers can share and discover new web pages.
    • del.icio.us
    • De.lirio.us
    • Slashdot
    • StumbleUpon
    • Technorati
    • Reddit
    • Digg

    Your Ad Here

    Transformers Stop Motion

    1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5 out of 5)
    Loading ... Loading ...
    204 views

    Optimus prime getting owned by bumble bee ;o

    Bookmark this page: These icons link to social bookmarking sites where readers can share and discover new web pages.
    • del.icio.us
    • De.lirio.us
    • Slashdot
    • StumbleUpon
    • Technorati
    • Reddit
    • Digg

    Your Ad Here

    Mitty’s plan to take over the world!? /care

    1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5 out of 5)
    Loading ... Loading ...
    163 views

    it’s a mitty tank!

    i’m a bit suprised about his display of power. ;o

    ima go awai, cya noobs!

    I don’t really care though.. ima go chilling with my lolly. Bye~!

    Bookmark this page: These icons link to social bookmarking sites where readers can share and discover new web pages.
    • del.icio.us
    • De.lirio.us
    • Slashdot
    • StumbleUpon
    • Technorati
    • Reddit
    • Digg

    Your Ad Here

    The world ends with you high res pin images

    1 Star2 Stars3 Stars4 Stars5 Stars (6 votes, average: 5 out of 5)
    Loading ... Loading ...
    4,435 views

    Download the high resolution pin images here: http://www.megaupload.com/?d=W79QN659 (password is: engineeringserver.com)
    All 304 pins are there in the 8.08 mb download. I hope you enjoy the package!

    Bookmark this page: These icons link to social bookmarking sites where readers can share and discover new web pages.
    • del.icio.us
    • De.lirio.us
    • Slashdot
    • StumbleUpon
    • Technorati
    • Reddit
    • Digg

    Your Ad Here

    Adobe® Flex™ Builder 3 Pro free for students

    1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 5 out of 5)
    Loading ... Loading ...
    592 views

    Adobe Flex Builder 3 Pro is available for free to all education customers. This includes all students, faculty and staff of eligible education institutions.

    Proof of Eligibility
    To receive the product, you must upload a valid proof of eligibility to get the serial numbers to activate the product. Valid proofs of eligibility are:
    1. a student ID showing current enrollment,
    2. a Faculty ID showing current employment
    3. an employee ID showing current employment, or
    4. a letter on an educational institution letterhead stating that you are either a current student, a current faculty member or a current employee of the institution.

    I currently use the Flex Builder 3 Professional demo and this is a welcome suprise to get Adobe Flex Builder 3 Pro for free. For those that are in college/university and want to try out Flex Builder 3 Professional , give it a shot! So far i’m enjoying this piece of software to create professional flash application(s) or like they say: “the easiest way to develop rich Internet applications for the web and the desktop”

    I’m still using the demo though.. but i’ll see if I can manage to get my hands on the free edition for students and ask my teacher about it.

    Website:
    http://flexregistration.com/

    Bookmark this page: These icons link to social bookmarking sites where readers can share and discover new web pages.
    • del.icio.us
    • De.lirio.us
    • Slashdot
    • StumbleUpon
    • Technorati
    • Reddit
    • Digg

    Your Ad Here