Homework thread - Page 4
Forum Index > Closed |
aers
![]()
United States1210 Posts
| ||
mahnini
United States6862 Posts
| ||
HeavOnEarth
United States7087 Posts
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: 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. | ||
Rostam
United States2552 Posts
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. | ||
aers
![]()
United States1210 Posts
| ||
mahnini
United States6862 Posts
On May 28 2009 11:10 Abydos1 wrote: Indenting (and syntax highlighting) since TL doesn't do it... http://pastebin.com/m6e7a70d8 ROFL | ||
HeavOnEarth
United States7087 Posts
On May 28 2009 11:10 Abydos1 wrote: Indenting (and syntax highlighting) since TL doesn't do it... http://pastebin.com/m6e7a70d8 Thank you. | ||
nataziel
Australia1455 Posts
| ||
![]()
Chill
Calgary25963 Posts
On May 28 2009 11:12 HeavOnEarth wrote: 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 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. | ||
![]()
Chill
Calgary25963 Posts
| ||
HeavOnEarth
United States7087 Posts
On May 28 2009 11:11 Chill wrote: 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. | ||
![]()
RaGe
Belgium9944 Posts
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? | ||
![]()
Xeofreestyler
Belgium6761 Posts
bringing up kawaii's opinion is the cherry though | ||
HeavOnEarth
United States7087 Posts
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? | ||
HeavOnEarth
United States7087 Posts
/** * @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(); } } | ||
HeavOnEarth
United States7087 Posts
/** * @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."); } } | ||
![]()
Chill
Calgary25963 Posts
| ||
![]()
RaGe
Belgium9944 Posts
| ||
![]()
Manifesto7
Osaka27124 Posts
| ||
![]()
zatic
Zurich15313 Posts
| ||
| ||