Java came in handy today!

AgaBoogaBoo

Lifer
Feb 16, 2003
26,108
5
81
I'm in my second year of programming in school and haven't had any real use for Java, but today I did :)

DeviousTrap IMed me that he needed a list of commands real quick, for 99 users. I decided to not type it manually.

I got the list of users, formatted each like a string should be seperate by commas using the replace all command

Then I made a string array and a for loop. the loop just outputted what I needed with the user's account name there. I got all 99 commands done within 10 minutes including making the program, formatting list of users, and e-mailing the commands to him

:cool:
 

apac

Diamond Member
Apr 12, 2003
6,212
0
71
Couldn't that have been done faster and easier with a shell script?

I fail to see why java is essential in this equation.
 

AgaBoogaBoo

Lifer
Feb 16, 2003
26,108
5
81
Originally posted by: apac
Couldn't that have been done faster and easier with a shell script?

I fail to see why java is essential in this equation.

oh dang, i have no clue

All I know is I made it simpler than what I was going to do

I don't have shell access :p
 

apac

Diamond Member
Apr 12, 2003
6,212
0
71
Originally posted by: AgaBoogaBoo
Originally posted by: apac
Couldn't that have been done faster and easier with a shell script?

I fail to see why java is essential in this equation.

oh dang, i have no clue

All I know is I made it simpler than what I was going to do

I don't have shell access :p

Bzzzt you fail your compsci essentials exam. Go learn linux ;).
 

AFB

Lifer
Jan 10, 2004
10,718
3
0
Originally posted by: apac
Originally posted by: AgaBoogaBoo
Originally posted by: apac
Couldn't that have been done faster and easier with a shell script?

I fail to see why java is essential in this equation.

oh dang, i have no clue

All I know is I made it simpler than what I was going to do

I don't have shell access :p

Bzzzt you fail your compsci essentials exam. Go learn linux ;).

:thumbsdown:
 

AgaBoogaBoo

Lifer
Feb 16, 2003
26,108
5
81
Originally posted by: StormRider
Sounds like something Perl would have been good to use too.

I think Perl isn't used as much now, especially the past few years because of PHP

I know that around 96/97, Perl was used far much more
 

StormRider

Diamond Member
Mar 12, 2000
8,324
2
0
Originally posted by: AgaBoogaBoo
Originally posted by: StormRider
Sounds like something Perl would have been good to use too.

I think Perl isn't used as much now, especially the past few years because of PHP

I know that around 96/97, Perl was used far much more

Kinda sad since I like Perl alot. But it also makes me want to learn PHP a bit and see how it compares.
 

dighn

Lifer
Aug 12, 2001
22,820
4
81
heh i remember using Java to generate some irsim (chip design stuff) inputs for an assignment. would have sucked to do that by cut/paste