• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 01:37
CEST 07:37
KST 14:37
  • 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 Tall15HomeStory 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 Revealed16Weekly Cups (July 7-13): Classic continues to roll8Team TLMC #5 - Submission extension3Firefly given lifetime ban by ESIC following match-fixing investigation17$25,000 Streamerzone StarCraft Pro Series announced7
StarCraft 2
General
Esports World Cup 2025 - Brackets Revealed RSL Revival patreon money discussion thread Who will win EWC 2025? The GOAT ranking of GOAT rankings Server Blocker
Tourneys
FEL Cracov 2025 (July 27) - $8000 live event Sparkling Tuna Cup - Weekly Open Tournament Sea Duckling Open (Global, Bronze-Diamond) RSL: Revival, a new crowdfunded tournament series $5,100+ SEL Season 2 Championship (SC: Evo)
Strategy
How did i lose this ZvP, whats the proper response
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
Flash Announces (and Retracts) Hiatus From ASL BGH Auto Balance -> http://bghmmr.eu/ BW General Discussion Soulkey Muta Micro Map? [ASL19] Finals Recap: Standing Tall
Tourneys
[Megathread] Daily Proleagues CSL Xiamen International Invitational 2025 ACS Season 2 Qualifier Cosmonarchy Pro Showmatches
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Stormgate/Frost Giant Megathread Path of Exile Nintendo Switch Thread 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
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread Stop Killing Games - European Citizens Initiative Summer Games Done Quick 2025!
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Korean Music Discussion Movie Discussion! [Manga] One Piece Anime Discussion Thread [\m/] Heavy Metal Thread
Sports
2024 - 2025 Football Thread Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023 NBA General Discussion NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
Ping To Win? Pings And Their…
TrAiDoS
momentary artworks from des…
tankgirl
from making sc maps to makin…
Husyelt
StarCraft improvement
iopq
Customize Sidebar...

Website Feedback

Closed Threads



Active: 611 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
Calgary25980 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
Calgary25980 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
Calgary25980 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
Osaka27148 Posts
May 28 2009 06:40 GMT
#79
This whole thread is just wow.
ModeratorGodfather
zatic
Profile Blog Joined September 2007
Zurich15325 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
Next event in 4h 23m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Nina 280
StarCraft: Brood War
Sea 15516
PianO 84
ajuk12(nOOB) 15
LuMiX 1
Backho 0
Britney 0
Stormgate
NightEnD9
Dota 2
monkeys_forever844
League of Legends
JimRising 772
Counter-Strike
Stewie2K1463
Heroes of the Storm
Khaldor71
Other Games
summit1g12525
shahzam1488
WinterStarcraft367
ViBE224
ROOTCatZ45
Trikslyr26
Organizations
Other Games
gamesdonequick3794
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• Berry_CruncH246
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• masondota2674
League of Legends
• Lourlo1526
• Stunt618
Upcoming Events
CranKy Ducklings
4h 23m
Epic.LAN
6h 23m
CSO Contender
11h 23m
Sparkling Tuna Cup
1d 4h
Online Event
1d 10h
Esports World Cup
3 days
ByuN vs Astrea
Lambo vs HeRoMaRinE
Clem vs TBD
Solar vs Zoun
SHIN vs Reynor
Maru vs TriGGeR
herO vs Lancer
Cure vs ShoWTimE
Esports World Cup
4 days
Esports World Cup
5 days
Esports World Cup
6 days
Liquipedia Results

Completed

CSL Xiamen Invitational: ShowMatche
RSL Revival: Season 1
Murky Cup #2

Ongoing

BSL 2v2 Season 3
Copa Latinoamericana 4
Jiahua Invitational
BSL20 Non-Korean Championship
CSL Xiamen Invitational
2025 ACS Season 2
Championship of Russia 2025
Underdog Cup #2
FISSURE Playground #1
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25

Upcoming

CSLPRO Last Chance 2025
CSLPRO Chat StarLAN 3
BSL Season 21
RSL Revival: Season 2
SEL Season 2 Championship
uThermal 2v2 Main Event
FEL Cracov 2025
Esports World Cup 2025
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.