• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 05:02
CEST 11:02
KST 18:02
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
RSL Season 1 - Final Week6[ASL19] Finals Recap: Standing Tall12HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0
Community News
Esports World Cup 2025 - Brackets Revealed10Weekly Cups (July 7-13): Classic continues to roll3Team TLMC #5 - Submission extension3Firefly given lifetime ban by ESIC following match-fixing investigation17$25,000 Streamerzone StarCraft Pro Series announced7
StarCraft 2
General
Weekly Cups (July 7-13): Classic continues to roll Esports World Cup 2025 - Brackets Revealed The GOAT ranking of GOAT rankings Team TLMC #5 - Submission extension Who will win EWC 2025?
Tourneys
RSL: Revival, a new crowdfunded tournament series FEL Cracov 2025 (July 27) - $8000 live event $5,100+ SEL Season 2 Championship (SC: Evo) WardiTV Mondays Sparkling Tuna Cup - Weekly Open Tournament
Strategy
How did i lose this ZvP, whats the proper response Simple Questions Simple Answers
Custom Maps
External Content
Mutation # 482 Wheel of Misfortune Mutation # 481 Fear and Lava Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome
Brood War
General
BGH Auto Balance -> http://bghmmr.eu/ BW General Discussion Flash Announces (and Retracts) Hiatus From ASL Starcraft in widescreen A cwal.gg Extension - Easily keep track of anyone
Tourneys
Cosmonarchy Pro Showmatches [Megathread] Daily Proleagues CSL Xiamen International Invitational [BSL20] Non-Korean Championship 4x BSL + 4x China
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Path of Exile Nintendo Switch Thread Stormgate/Frost Giant Megathread CCLP - Command & Conquer League Project The PlayStation 5
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
Russo-Ukrainian War Thread Stop Killing Games - European Citizens Initiative US Politics Mega-thread Summer Games Done Quick 2025! Things Aren’t Peaceful in Palestine
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Movie Discussion! [Manga] One Piece Anime Discussion Thread [\m/] Heavy Metal Thread
Sports
Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023 2024 - 2025 Football Thread NBA General Discussion NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
Men Take Risks, Women Win Ga…
TrAiDoS
momentary artworks from des…
tankgirl
from making sc maps to makin…
Husyelt
StarCraft improvement
iopq
Trip to the Zoo
micronesia
Customize Sidebar...

Website Feedback

Closed Threads



Active: 528 users

Homework thread - Page 2

Forum Index > Closed
Post a Reply
Prev 1 2 3 4 5 Next All
qrs
Profile Blog Joined December 2007
United States3637 Posts
May 28 2009 01:22 GMT
#21
On May 28 2009 10:20 RaGe wrote:
Lastly: Can you please tell me who the fuck you're sharing your account with that is making these dumbass statements? Apparently your IP has been static for days, and now it changes for every post you make about this problem.

Aha! Clever, RaGe.
'As per the American Heart Association, the beat of the Bee Gees song "Stayin' Alive" provides an ideal rhythm in terms of beats per minute to use for hands-only CPR. One can also hum Queen's "Another One Bites The Dust".' —Wikipedia
HeavOnEarth
Profile Blog Joined March 2008
United States7087 Posts
May 28 2009 01:22 GMT
#22
We're both working on the same thing, =/.
"come korea next time... FXO house... 10 korean, 10 korean"
HeavOnEarth
Profile Blog Joined March 2008
United States7087 Posts
May 28 2009 01:23 GMT
#23
I don't see how that's even relevant anyways?
"come korea next time... FXO house... 10 korean, 10 korean"
fusionsdf
Profile Blog Joined June 2006
Canada15390 Posts
May 28 2009 01:25 GMT
#24
everything has been answered for you

stop acting like a douche yo
SKT_Best: "I actually chose Protoss because it was so hard for me to defeat Protoss as a Terran. When I first started Brood War, my main race was Terran."
imDerek
Profile Blog Joined August 2007
United States1944 Posts
May 28 2009 01:25 GMT
#25
try-catch-finally
Least favorite progamers: Leta, Zero, Mind, Shine, free, really <-- newly added
Chill
Profile Blog Joined January 2005
Calgary25980 Posts
May 28 2009 01:26 GMT
#26
You don't see why letting people log onto your account, using your veteran status to get answers, and then posting ridiculous flames is relevant?
Moderator
Divinek
Profile Blog Joined November 2006
Canada4045 Posts
May 28 2009 01:35 GMT
#27
You sure raped those bm'ing assholes but not actually reading their posts then replying!
Never attribute to malice that which can be adequately explained by stupidity.
Oh goodness me, FOX tv where do you get your sight? Can't you keep track, the puck is black. That's why the ice is white.
HeavOnEarth
Profile Blog Joined March 2008
United States7087 Posts
May 28 2009 01:38 GMT
#28
by courtesy of chill
http://www.teamliquid.net/staff/Chill/heav.png
lmfao
"come korea next time... FXO house... 10 korean, 10 korean"
HeavOnEarth
Profile Blog Joined March 2008
United States7087 Posts
May 28 2009 01:44 GMT
#29
import java.util.Scanner;
public class UserInput{

public String done= "DONE";;
public Scanner scan = new Scanner(System.in);
public String scanned = "";

public UserInput(){

System.out.println("Type a string. Max 20 characters.");
System.out.println("Type DONE, in all caps to end.");
while(scanned.compareTo(done) != 0){
try{
scanned = scan.next();
if(scanned.length() > 20){
throw new StringTooLongException();
}
System.out.println(scanned);
}
catch(StringTooLongException e){
System.out.println(e.getMessage());
System.out.println("Exception caught! Continuing...");
}
}
}

}

Woot. Fixed! Learn English guys. Jesus christ. If you meant to put the ENTIRE TRYCATCH inside the while loop, then that'd have been nice. w00t@Abysdos being helpful, printStackTrace actually made me compare the two programs I had, and whee.
"come korea next time... FXO house... 10 korean, 10 korean"
HeavOnEarth
Profile Blog Joined March 2008
United States7087 Posts
May 28 2009 01:46 GMT
#30
Hay RaGe why so cry to Nam instead of to me?
"come korea next time... FXO house... 10 korean, 10 korean"
fusionsdf
Profile Blog Joined June 2006
Canada15390 Posts
May 28 2009 01:46 GMT
#31
no

obviously we meant put the try statement both inside and outside the while loop, and the catch statement should be in another program altogether.

HOW COULD WE BE SO UNCLEAR!
SKT_Best: "I actually chose Protoss because it was so hard for me to defeat Protoss as a Terran. When I first started Brood War, my main race was Terran."
fusionsdf
Profile Blog Joined June 2006
Canada15390 Posts
May 28 2009 01:47 GMT
#32
I mean dear god

try and catch in the same scope

WHAT ARE YOU TRYING TO DO TO ME
SKT_Best: "I actually chose Protoss because it was so hard for me to defeat Protoss as a Terran. When I first started Brood War, my main race was Terran."
RaGe
Profile Blog Joined July 2004
Belgium9947 Posts
Last Edited: 2009-05-28 01:53:36
May 28 2009 01:51 GMT
#33
On May 28 2009 10:46 HeavOnEarth wrote:
Hay RaGe why so cry to Nam instead of to me?

Cause if you still don't understand what I wrote, you still don't understand how it works.

See you back when your next homework is due, cause I don't see you comprehending anything anytime soon.

edit: I mean, looking back, do you understand why your previous code didn't work? Why you needed to change the location of your try and catch blocks?

The mistake you made was assuming when an exception is thrown, after the catch block is executed, it resumes in the try block (which would completely ruin the function of try-catch blocks btw). I corrected that by literally saying it resumes after the catch block.
Moderatorsometimes I get intimidated by the size of my right testicle
nataziel
Profile Blog Joined October 2008
Australia1455 Posts
May 28 2009 01:52 GMT
#34
-_- = This whole thread
u gotta sk8
mahnini
Profile Blog Joined October 2005
United States6862 Posts
May 28 2009 01:52 GMT
#35
this is a terrible homework thread

1. code is unreadable
2. OP is stupid
3. OP doesnt know he's stupid
the world's a playground. you know that when you're a kid, but somewhere along the way everyone forgets it.
HeavOnEarth
Profile Blog Joined March 2008
United States7087 Posts
May 28 2009 01:54 GMT
#36
My friend's SFSkabam then.
"come korea next time... FXO house... 10 korean, 10 korean"
azndsh
Profile Blog Joined August 2006
United States4447 Posts
May 28 2009 01:55 GMT
#37
wait... how the hell is this NOT homework?
fusionsdf
Profile Blog Joined June 2006
Canada15390 Posts
May 28 2009 01:57 GMT
#38
it is, hence them both working on the same thing. He just figures if he lies about it he can keep his thread open
SKT_Best: "I actually chose Protoss because it was so hard for me to defeat Protoss as a Terran. When I first started Brood War, my main race was Terran."
HeavOnEarth
Profile Blog Joined March 2008
United States7087 Posts
May 28 2009 01:58 GMT
#39
He lives in Oregon i live in Texas
This is totally classwork for college. you got me man.
"come korea next time... FXO house... 10 korean, 10 korean"
SFSKabam
Profile Joined May 2009
United States1 Post
May 28 2009 01:59 GMT
#40
On May 28 2009 10:47 fusionsdf wrote:
I mean dear god

try and catch in the same scope

WHAT ARE YOU TRYING TO DO TO ME

On May 28 2009 10:46 fusionsdf wrote:
no

obviously we meant put the try statement both inside and outside the while loop, and the catch statement should be in another program altogether.

HOW COULD WE BE SO UNCLEAR!

I know right? Jesus, if only everyone ALREADY knew Java! Then I wouldn't need to politely ask a fucking question, and have some piece of shit named RaGe basically passive flame me with bullshit statement such as "LAWL YOURNUB LERN 2 KNOW JAVA, WHY ASK QUESTION LOL YOU HAS PRINT LINE OHNOES."

On May 28 2009 10:51 RaGe wrote:
Show nested quote +
On May 28 2009 10:46 HeavOnEarth wrote:
Hay RaGe why so cry to Nam instead of to me?

Cause if you still don't understand what I wrote, you still don't understand how it works.

See you back when your next homework is due, cause I don't see you comprehending anything anytime soon.

Actually, this's the first problem I've had big enough problem to fucking post online. Probably not the last, but certainly the last for a long time.

On May 28 2009 10:52 mahnini wrote:
this is a terrible homework thread

1. code is unreadable
2. OP is stupid
3. OP doesnt know he's stupid


1: Code is perfeclty indented, TL.net is just pathetic and doesn't know what a "tab" space is?
2: Rofl
3: Rofl these don't even deserve a comment.

On May 28 2009 10:51 RaGe wrote:
edit: I mean, looking back, do you understand why your previous code didn't work? Why you needed to change the location of your try and catch blocks?

The mistake you made was assuming when an exception is thrown, after the catch block is executed, it resumes in the try block (which would completely ruin the function of try-catch blocks btw). I corrected that by literally saying it resumes after the catch block.

JESUS CHRIST, THAT'S EXACTLY WHAT I ASKED AT THE TOP?

ME:
Firstly, the throw is inside a while loop. What I'm wondering is why the crap it isn't continuing the while loop, opposed to what it does now; which is ends the program. It should not be ending the program, it should be throwing an error, catching it, and then going back to the while loop.

Notice how I said "I'm wondering why ..." ? The first time I put trycatch inside a while loop I got a fucking runtime error in Eclipse.

ALSO IT'S NOT FUCKING HOMEWORK. IT'S HELP IN UNDERSTANDING. Fuck off.
TL.Net fails. lawl.
Prev 1 2 3 4 5 Next All
Please log in or register to reply.
Live Events Refresh
Next event in 58m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Nina 213
mcanning 112
StarCraft: Brood War
Zeus 850
BeSt 93
sSak 50
Shinee 18
yabsab 12
Shine 9
Bale 4
sorry 3
PianO 0
Dota 2
XaKoH 563
XcaliburYe332
canceldota155
League of Legends
JimRising 525
Counter-Strike
Stewie2K1408
shoxiejesuss582
Super Smash Bros
Mew2King126
Other Games
summit1g11982
singsing864
Fuzer 241
SortOf139
Happy102
Trikslyr33
Organizations
Other Games
gamesdonequick3459
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 13 non-featured ]
StarCraft 2
• Berry_CruncH358
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• lizZardDota2172
League of Legends
• Lourlo1160
Upcoming Events
Replay Cast
58m
WardiTV European League
6h 58m
ShoWTimE vs sebesdes
Percival vs NightPhoenix
Shameless vs Nicoract
Krystianer vs Scarlett
ByuN vs uThermal
Harstem vs HeRoMaRinE
PiGosaur Monday
14h 58m
uThermal 2v2 Circuit
1d 6h
Replay Cast
1d 14h
The PondCast
2 days
WardiTV European League
2 days
Replay Cast
2 days
Epic.LAN
3 days
CranKy Ducklings
4 days
[ Show More ]
Epic.LAN
4 days
CSO Contender
4 days
BSL20 Non-Korean Champi…
4 days
Bonyth vs Sziky
Dewalt vs Hawk
Hawk vs QiaoGege
Sziky vs Dewalt
Mihu vs Bonyth
Zhanhun vs QiaoGege
QiaoGege vs Fengzi
Sparkling Tuna Cup
5 days
Online Event
5 days
BSL20 Non-Korean Champi…
5 days
Bonyth vs Zhanhun
Dewalt vs Mihu
Hawk vs Sziky
Sziky vs QiaoGege
Mihu vs Hawk
Zhanhun vs Dewalt
Fengzi vs Bonyth
Liquipedia Results

Completed

2025 ACS Season 2: Qualifier
RSL Revival: Season 1
Murky Cup #2

Ongoing

JPL Season 2
BSL 2v2 Season 3
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
Jiahua Invitational
BSL20 Non-Korean Championship
Championship of Russia 2025
FISSURE Playground #1
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
BLAST Rivals Spring 2025
MESA Nomadic Masters

Upcoming

CSL Xiamen Invitational
CSL Xiamen Invitational: ShowMatche
2025 ACS Season 2
CSLPRO Last Chance 2025
CSLPRO Chat StarLAN 3
BSL Season 21
K-Championship
RSL Revival: Season 2
SEL Season 2 Championship
uThermal 2v2 Main Event
FEL Cracov 2025
Esports World Cup 2025
Underdog Cup #2
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.