BSG IS Over.

Mar 20, 2009 21:36

I'm....numb. Wow. I have to process for a while.

There are those who believe, that life here....began out there.

Leave a comment

Comments 8

thechiaroscuro March 21 2009, 05:53:05 UTC
How'd the homework go?

*snicker*

Reply

Homework apostate_9 March 21 2009, 06:41:20 UTC
Well, Mrs. Cynical, I think it is ok. I could use your feedback though. Let me know if anything jumps out at ya. Of course it won't all fit here ( ... )

Reply

This One was even more fun apostate_9 March 21 2009, 06:49:36 UTC
/*
* CSC 240 Assignment 2: StateFacts App
* Spring 2009
*/

package displaystatefacts;
import java.io.*;

/**
*
* @author Rob Holman
*/
public class DisplayStateFacts
{
// Initilaize Static variables, and declare the state array
private static StateFact[] states = new StateFact[50];
static int i;

/**
* @param args the command line arguments
*/
public static void main(String[] args)
{
//Fill the array with states using readFact method.

BufferedReader inputStream = getReader("states.txt");

{ for (i = 0;i < 50 ;i++)
states[i] = readFact(inputStream);

}

// Handle Command-line arguments, match entered args to states in the array
// Use printf to format output in columns with fixed widths

if (args.length == 0)
{
System.out.printf("%-20s %-20s\n" , "State Name", "Capitol City");
System.out.println("=========================================");
for (i = 0;i < 50;i ( ... )

Reply

Re: This One was even more fun thechiaroscuro March 21 2009, 07:18:03 UTC
There's something wrong with you. Srlsly.

;o)

Reply


Leave a comment

Up