• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 09:09
CEST 15:09
KST 22:09
  • 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
Team TLMC #5 - Finalists & Open Tournaments0[ASL20] Ro16 Preview Pt2: Turbulence6Classic Games #3: Rogue vs Serral at BlizzCon9[ASL20] Ro16 Preview Pt1: Ascent10Maestros of the Game: Week 1/Play-in Preview12
Community News
Weekly Cups (Sept 8-14): herO & MaxPax split cups3WardiTV TL Team Map Contest #5 Tournaments1SC4ALL $6,000 Open LAN in Philadelphia7Weekly Cups (Sept 1-7): MaxPax rebounds & Clem saga continues29LiuLi Cup - September 2025 Tournaments3
StarCraft 2
General
#1: Maru - Greatest Players of All Time Team Liquid Map Contest #21 - Presented by Monster Energy Weekly Cups (Sept 8-14): herO & MaxPax split cups SpeCial on The Tasteless Podcast Team TLMC #5 - Finalists & Open Tournaments
Tourneys
Sparkling Tuna Cup - Weekly Open Tournament WardiTV TL Team Map Contest #5 Tournaments Maestros of The Game—$20k event w/ live finals in Paris RSL: Revival, a new crowdfunded tournament series SC4ALL $6,000 Open LAN in Philadelphia
Strategy
Custom Maps
External Content
Mutation # 491 Night Drive Mutation # 490 Masters of Midnight Mutation # 489 Bannable Offense Mutation # 488 What Goes Around
Brood War
General
BGH Auto Balance -> http://bghmmr.eu/ [ASL20] Ro16 Preview Pt2: Turbulence Diplomacy, Cosmonarchy Edition BW General Discussion ASL20 General Discussion
Tourneys
[ASL20] Ro16 Group D [ASL20] Ro16 Group C [Megathread] Daily Proleagues SC4ALL $1,500 Open Bracket LAN
Strategy
Simple Questions, Simple Answers Muta micro map competition Fighting Spirit mining rates [G] Mineral Boosting
Other Games
General Games
Stormgate/Frost Giant Megathread Path of Exile General RTS Discussion Thread Nintendo Switch Thread Borderlands 3
Dota 2
Official 'what is Dota anymore' discussion LiquidDota to reintegrate into TL.net
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
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Canadian Politics Mega-thread Russo-Ukrainian War Thread The Big Programming Thread
Fan Clubs
The Happy Fan Club!
Media & Entertainment
Movie Discussion! [Manga] One Piece Anime Discussion Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion MLB/Baseball 2023
World Cup 2022
Tech Support
Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread High temperatures on bridge(s)
TL Community
BarCraft in Tokyo Japan for ASL Season5 Final The Automated Ban List
Blogs
The Personality of a Spender…
TrAiDoS
A very expensive lesson on ma…
Garnet
hello world
radishsoup
Lemme tell you a thing o…
JoinTheRain
RTS Design in Hypercoven
a11
Evil Gacha Games and the…
ffswowsucks
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1602 users

Homework thread - Page 4

Forum Index > Closed
Post a Reply
Prev 1 2 3 4 5 Next All
aers *
Profile Joined January 2009
United States1210 Posts
May 28 2009 02:11 GMT
#61
Yeah, I told him in IRC that using an exception is excessive there. It's a simple while loop that takes input and prints it back out.
mahnini
Profile Blog Joined October 2005
United States6862 Posts
May 28 2009 02:11 GMT
#62
lol
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 02:12 GMT
#63
On May 28 2009 11:10 ChillIsPathetic wrote:
Chill you're naught but a pathetic power hungry 13 year old? I like how I get BM'd first, and I'm the bad guy. Rofl.
Seriously, almost the entire TL.net community is fucking trash, including the mods. Seriously, why was Kawaii so pissed about this pathetic site.

Lawl, banned:
Reason: Incosiderate newb. Try harder on your next account.

There will be no more accounts (other than this one)? This site was trash the first time I used it, and it was again, even on Nam's account when I was extremely fucking GM. First some pathetic piece of shit mod closes the first thread, and then I get lawl'd by RaGe, who gains a fuckton of retards behind him? Seriously, you people need to burn at the stake.

Uh if i agree do i get banned too?
The bandwagon was pathetic, RaGe flaming first was uncalled for, and the only one who probably helped was Abydos1

On May 28 2009 09:53 Abydos1 wrote:
Show nested quote +
On May 28 2009 09:28 HeavOnEarth wrote:

import java.util.Scanner;

public class UserInput{

public UserInput(){

try{
String done = "DONE";
System.out.println("Type a string. Max 20 characters.");
System.out.println("Type DONE, in all caps to end.");
Scanner scan = new Scanner(System.in);
String s = scan.next();
while(s.compareTo(done) != 0){
if(s.length() > 20){
/**
* Here is the problem, it is ending the process,
* when it is obviously catching the exception.
*/
throw new StringTooLongException();
}
System.out.println(s);
s = scan.next();
}
}
catch(StringTooLongException e){
System.out.println(e.getMessage());
System.out.println("Exception caught! Ending program.");
}
}
}



If you're talking about this one the exception keeps going up the stack until it gets caught or the program ends, thus its getting out of the while loop.

"come korea next time... FXO house... 10 korean, 10 korean"
Rostam
Profile Blog Joined December 2008
United States2552 Posts
May 28 2009 02:12 GMT
#64
On May 28 2009 11:10 ChillIsPathetic wrote:
Chill you're naught but a pathetic power hungry 13 year old? I like how I get BM'd first, and I'm the bad guy. Rofl.
Seriously, almost the entire TL.net community is fucking trash, including the mods. Seriously, why was Kawaii so pissed about this pathetic site.

Lawl, banned:
Reason: Incosiderate newb. Try harder on your next account.

There will be no more accounts (other than this one)? This site was trash the first time I used it, and it was again, even on Nam's account when I was extremely fucking GM. First some pathetic piece of shit mod closes the first thread, and then I get lawl'd by RaGe, who gains a fuckton of retards behind him? Seriously, you people need to burn at the stake.


Hey man, they just did your homework for you! You should be grateful.
BW forever || Thall
aers *
Profile Joined January 2009
United States1210 Posts
May 28 2009 02:13 GMT
#65
... I give up.
mahnini
Profile Blog Joined October 2005
United States6862 Posts
May 28 2009 02:14 GMT
#66
On May 28 2009 11:10 Abydos1 wrote:
Indenting (and syntax highlighting) since TL doesn't do it...

http://pastebin.com/m6e7a70d8

ROFL
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 02:16 GMT
#67
On May 28 2009 11:10 Abydos1 wrote:
Indenting (and syntax highlighting) since TL doesn't do it...

http://pastebin.com/m6e7a70d8

Thank you.
"come korea next time... FXO house... 10 korean, 10 korean"
nataziel
Profile Blog Joined October 2008
Australia1455 Posts
May 28 2009 02:16 GMT
#68
Did I see a thread title change then quick revert?
u gotta sk8
Chill
Profile Blog Joined January 2005
Calgary25981 Posts
May 28 2009 02:16 GMT
#69
On May 28 2009 11:12 HeavOnEarth wrote:
Show nested quote +
On May 28 2009 11:10 ChillIsPathetic wrote:
Chill you're naught but a pathetic power hungry 13 year old? I like how I get BM'd first, and I'm the bad guy. Rofl.
Seriously, almost the entire TL.net community is fucking trash, including the mods. Seriously, why was Kawaii so pissed about this pathetic site.

Lawl, banned:
Reason: Incosiderate newb. Try harder on your next account.

There will be no more accounts (other than this one)? This site was trash the first time I used it, and it was again, even on Nam's account when I was extremely fucking GM. First some pathetic piece of shit mod closes the first thread, and then I get lawl'd by RaGe, who gains a fuckton of retards behind him? Seriously, you people need to burn at the stake.

Uh if i agree do i get banned too?
The bandwagon was pathetic, RaGe flaming first was uncalled for, and the only one who probably helped was Abydos1

Show nested quote +
On May 28 2009 09:53 Abydos1 wrote:
On May 28 2009 09:28 HeavOnEarth wrote:

import java.util.Scanner;

public class UserInput{

public UserInput(){

try{
String done = "DONE";
System.out.println("Type a string. Max 20 characters.");
System.out.println("Type DONE, in all caps to end.");
Scanner scan = new Scanner(System.in);
String s = scan.next();
while(s.compareTo(done) != 0){
if(s.length() > 20){
/**
* Here is the problem, it is ending the process,
* when it is obviously catching the exception.
*/
throw new StringTooLongException();
}
System.out.println(s);
s = scan.next();
}
}
catch(StringTooLongException e){
System.out.println(e.getMessage());
System.out.println("Exception caught! Ending program.");
}
}
}



If you're talking about this one the exception keeps going up the stack until it gets caught or the program ends, thus its getting out of the while loop.


Stop fucking martyring yourself. No one gets banned for have rational discussion about moderators.

Rage attacked unprovoked when he shouldn't have; I've already admitted that. However, your friend is much more at fault in this case. And being that he has literally nothing to add and if flaming many people, he is banned.
Moderator
Chill
Profile Blog Joined January 2005
Calgary25981 Posts
May 28 2009 02:17 GMT
#70
Rage's first post is literally everything you need to know. "Didn't help"? If you mean he didn't post the updated code, then sure, but he posted the reason your code wasn't doing what you expected, and everyone can clearly understand it.
Moderator
HeavOnEarth
Profile Blog Joined March 2008
United States7087 Posts
May 28 2009 02:17 GMT
#71
On May 28 2009 11:11 Chill wrote:
Show nested quote +
On May 28 2009 11:08 HeavOnEarth wrote:
On May 28 2009 11:06 Elemenope wrote:
On May 28 2009 11:04 HeavOnEarth wrote:
I mean jesus christ, have you read the begginning of the thread? RaGe started posting shit , pretty much unprovoked as far as i can tell



On May 28 2009 09:38 RaGe wrote:
When an exception gets thrown, it immeadiately skips to the Catch, which is at the end of your program, so it terminates the program cause there's no following lines of code

program is doing what you made it to do lol




Yeah man, that was quite posting shit, much unprovoked as far as I can tell too.


wow i get more and more convinced you have no idea what you're doing and just copy pasted shit

it's not copy pasted?
at this point he's insulting me as well ; not just my friend

IN response to this
On May 28 2009 09:49 HeavOnEarth wrote:
On May 28 2009 09:38 RaGe wrote:
When an exception gets thrown, it immeadiately skips to the Catch, which is at the end of your program, so it terminates the program cause there's no following lines of code

program is doing what you made it to do lol


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.

On May 28 2009 09:44 RaGe wrote:
wow i get more and more convinced you have no idea what you're doing and just copy pasted shit or something

i mean, your catch block is:

catch(StringTooLongException e){
System.out.println(e.getMessage());
System.out.println("Exception caught! Ending program.");
}


you even print that you're ending the program and you dont want it to end the program?


Oh noes, I has a random print line that hasn't been changed from a previous version. Printing text doesn't end a program. ... (At least not this one)


Rage posts
Maybe you should stop being so defensive and read the fucking solution for a change.


I can't even program and I understand what Rage says. Exception thrown = goto catch. Your friend doesn't address this point at all. So Rage says l2read.


That's nice, Chill. Nowhere was it explained that it doesn't go back to where the throw was. Which is the exact fucking opposite of what my "Teacher" had told / shown us inside a fucking powerpoint presentation.
"come korea next time... FXO house... 10 korean, 10 korean"
RaGe
Profile Blog Joined July 2004
Belgium9947 Posts
May 28 2009 02:18 GMT
#72
If you stopped lying and admitted that you're not working with him on his 'project' and that you have no clue about Java, you would understand that he just copy pasted that entire catch block in to an arbitrary point in his code and was wondering why it didn't work. The reason why my second reply stated this in a little hostile manner is because after your first thread getting closed, you repost it with a question about he a subject that was clearly not even studied. If he read a basic guide on Exceptions, he would've known what I posted in my first solution.

So, what he basically did was:

1. Copy paste code without understanding how it worked.
2. Being puzzled at why it doesn't work, he posted a thread asking for the fix instead of asking for an explanation.
3. Gets his thread closed. Still doesn't think he should actually try researching what he's doing, and reposts in an aggressive way.

I still post the right answer. Then I realize all this and get a little frustrated and post this:

wow i get more and more convinced you have no idea what you're doing and just copy pasted shit


What he does?

4. Denies my completely valid explanation.
5. Starts flaming people.

How can you even defend this?
Moderatorsometimes I get intimidated by the size of my right testicle
Xeofreestyler
Profile Blog Joined June 2005
Belgium6771 Posts
May 28 2009 02:25 GMT
#73
lmao Heavonearth your friend is one frustrated piece of shit

bringing up kawaii's opinion is the cherry though
Graphics
HeavOnEarth
Profile Blog Joined March 2008
United States7087 Posts
May 28 2009 02:27 GMT
#74

public class Starter {

public static void main(String[] args) {

String done = "DONE";
System.out.println("DocType? U = Unclassified, C = Confidential, P = Proprietary.");
System.out.println("Type DONE, in all caps to end.");
Scanner scan = new Scanner(System.in);
String docType = scan.next();
while(docType.compareTo(done) != 0){
Document doc = new Document(docType);
System.out.println(doc);
docType = scan.next();
}
System.out.println("Program Fin~");
}

}

public class InvalidDocumentCodeException extends Exception{

public InvalidDocumentCodeException(){
}

public String getMessage(){
return "Document code must be U (Unclassified), C (Confidential), or P (Proptietary)." +
"\nDocument will default to Unclassified.";
}

}

public class Document {

private String dType = "U";
public Document(String docType){
try{
if( docType.compareToIgnoreCase("U") != 0
&& docType.compareToIgnoreCase("C") != 0
&& docType.compareToIgnoreCase("P") != 0 )
throw new InvalidDocumentCodeException();
dType = docType;
}
catch(InvalidDocumentCodeException e){
System.out.println("Exception caught and handled! Continuing...");
System.out.println(e.getMessage());
}
}

public void setDocType(String docType){
dType = docType;
}
public String toString(){
return "Document type: "+ dType.toUpperCase();
}
}

i bet i copied pasted all this shit too right?
"come korea next time... FXO house... 10 korean, 10 korean"
HeavOnEarth
Profile Blog Joined March 2008
United States7087 Posts
May 28 2009 02:28 GMT
#75
here's another one..

/**
* @param args
*/
public static void main(String[] args) {
try{
String done = "DONE";
System.out.println("DocType? U = Unclassified, C = Confidential, P = Proprietary.");
System.out.println("Type DONE, in all caps to end.");
Scanner scan = new Scanner(System.in);
String docType = scan.next();
while(docType.compareTo(done) != 0){
if( docType.compareToIgnoreCase("U") != 0
&& docType.compareToIgnoreCase("C") != 0
&& docType.compareToIgnoreCase("P") != 0 )
throw new InvalidDocumentCodeException();
Document doc = new Document(docType);
System.out.println(doc);
docType = scan.next();
}
System.out.println("Program Fin~");
}
catch(InvalidDocumentCodeException e){
System.out.println(e.getMessage());
System.out.println("Exception caught! Ending program.");
}
}

}

public class InvalidDocumentCodeException extends Exception{

public InvalidDocumentCodeException(){
}

public String getMessage(){
return "Document code must be U (Unclassified), C (Confidential), or P (Proptietary).";
}

}

public class Document {

private String dType;
public Document(String docType){
try{
if( docType.compareToIgnoreCase("U") != 0
&& docType.compareToIgnoreCase("C") != 0
&& docType.compareToIgnoreCase("P") != 0 )
throw new InvalidDocumentCodeException();
dType = docType;
}
catch(InvalidDocumentCodeException e){
System.out.println("Exception caught!");
System.out.println(e.getMessage());
}
}

public String toString(){
return "Document type: "+ dType.toUpperCase();
}
}
"come korea next time... FXO house... 10 korean, 10 korean"
HeavOnEarth
Profile Blog Joined March 2008
United States7087 Posts
May 28 2009 02:28 GMT
#76
and i obviously , obviously copied pasted this as well

/**
* @param args
*/
public static void main(String[] args) throws StringTooLongException{

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

}

}

public class StringTooLongException extends Exception{

StringTooLongException(){
System.out.println("String is greater than 20 characters.");
}

}
"come korea next time... FXO house... 10 korean, 10 korean"
Chill
Profile Blog Joined January 2005
Calgary25981 Posts
May 28 2009 02:30 GMT
#77
Ok. Closing this shit.
Moderator
RaGe
Profile Blog Joined July 2004
Belgium9947 Posts
May 28 2009 02:40 GMT
#78
Rofl, he even admitted to copy pasting in the end.
Moderatorsometimes I get intimidated by the size of my right testicle
Manifesto7
Profile Blog Joined November 2002
Osaka27151 Posts
May 28 2009 06:40 GMT
#79
This whole thread is just wow.
ModeratorGodfather
zatic
Profile Blog Joined September 2007
Zurich15345 Posts
May 28 2009 08:35 GMT
#80
WTF happened here....
ModeratorI know Teamliquid is known as a massive building
Prev 1 2 3 4 5 Next All
Please log in or register to reply.
Live Events Refresh
OSC
13:00
King of the Hill #225
Liquipedia
2v2
11:00
TLMC $500 2v2 Open Cup
WardiTV456
IndyStarCraft 134
Rex80
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Lowko427
IndyStarCraft 134
Rex 80
ProTech64
Codebar 0
StarCraft: Brood War
Calm 16950
Flash 10383
Rain 6575
Bisu 5010
GuemChi 4520
BeSt 1625
Horang2 1390
EffOrt 1174
Mini 861
Hyuk 737
[ Show more ]
Pusan 565
Zeus 556
ZerO 497
firebathero 467
Hyun 247
Soulkey 220
Snow 169
Mind 142
Rush 125
ggaemo 81
Mong 76
Barracks 62
soO 56
JYJ53
Liquid`Ret 49
Backho 47
Aegong 46
Sea.KH 44
Killer 39
Movie 34
Sharp 30
Free 18
sorry 18
Sacsri 18
Terrorterran 15
HiyA 13
Icarus 10
SilentControl 9
Hm[arnc] 7
Bale 6
IntoTheRainbow 6
Noble 5
Dota 2
singsing3995
Gorgc3868
Dendi1660
qojqva1580
XcaliburYe216
Pyrionflax184
Fuzer 152
Counter-Strike
byalli218
markeloff164
zeus99
edward20
Other Games
olofmeister1225
B2W.Neo841
hiko804
crisheroes387
x6flipin384
Hui .181
Happy108
QueenE56
NeuroSwarm46
Trikslyr34
FunKaTv 20
ToD6
Organizations
StarCraft: Brood War
Afreeca ASL 21433
UltimateBattle 348
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• iHatsuTV 4
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• C_a_k_e 2910
• WagamamaTV401
League of Legends
• Nemesis6367
Upcoming Events
PiGosaur Monday
10h 51m
LiuLi Cup
21h 51m
RSL Revival
1d 20h
Maru vs Reynor
Cure vs TriGGeR
The PondCast
1d 23h
RSL Revival
2 days
Zoun vs Classic
Korean StarCraft League
3 days
BSL Open LAN 2025 - War…
3 days
RSL Revival
3 days
BSL Open LAN 2025 - War…
4 days
RSL Revival
4 days
[ Show More ]
Online Event
5 days
Wardi Open
5 days
Sparkling Tuna Cup
6 days
Liquipedia Results

Completed

Proleague 2025-09-10
Chzzk MurlocKing SC1 vs SC2 Cup #2
HCC Europe

Ongoing

BSL 20 Team Wars
KCM Race Survival 2025 Season 3
BSL 21 Points
ASL Season 20
CSL 2025 AUTUMN (S18)
LASL Season 20
RSL Revival: Season 2
Maestros of the Game
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
FISSURE Playground #1

Upcoming

2025 Chongqing Offline CUP
BSL World Championship of Poland 2025
IPSL Winter 2025-26
BSL Season 21
SC4ALL: Brood War
BSL 21 Team A
Stellar Fest
SC4ALL: StarCraft II
EC S1
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
MESA Nomadic Masters Fall
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 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.