Timeline for Showcase of Languages
Current License: CC BY-SA 3.0
38 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 23, 2017 at 12:41 | history | edited | CommunityBot |
replaced http://stackoverflow.com/ with https://stackoverflow.com/
|
|
Jan 1, 2017 at 17:15 | history | made wiki | Post Made Community Wiki by Dennis | ||
Oct 28, 2016 at 0:58 | comment | added | hyperneutrino♦ |
+1 for the a-=-a snippet. It just looks so nice.
|
|
Sep 21, 2016 at 3:15 | comment | added | user56309 | It should be noted on snippet 31 that this is not a common solution, as often ' and " are on the same key. | |
Jul 18, 2016 at 2:36 | review | Suggested edits | |||
Jul 18, 2016 at 4:40 | |||||
Jul 12, 2016 at 2:29 | comment | added | user8397947 | @durron597 Done! | |
S Jul 12, 2016 at 2:27 | history | suggested | user8397947 | CC BY-SA 3.0 |
Added 3 snippets
|
Jul 11, 2016 at 22:43 | review | Suggested edits | |||
S Jul 12, 2016 at 2:27 | |||||
Jun 25, 2016 at 2:35 | comment | added | user8397947 |
But it Java, [goto] triggers a mysterious RuntimeException Wrong. goto doesn't even compile.
|
|
May 6, 2016 at 15:05 | comment | added | Bálint | ClassCastException is not an exception you usually throw. | |
Apr 28, 2016 at 19:32 | comment | added | cat | -1 for Java. (I upvoted, I promise) | |
Jan 28, 2015 at 19:32 | comment | added | durron597 | Upvoted to help you make a complete program ;) | |
Jan 28, 2015 at 13:18 | comment | added | Natix |
It seems that the snippet #36 is recursive and can be extended indefinitely: class A{class B extends A{B.B.B.B.B.B.B b;}} still compiles.
|
|
S Jan 27, 2015 at 16:40 | history | suggested | A.L | CC BY-SA 3.0 |
Java code highlight
|
Jan 27, 2015 at 16:06 | review | Suggested edits | |||
S Jan 27, 2015 at 16:40 | |||||
Jan 23, 2015 at 16:42 | history | edited | Ypnypn | CC BY-SA 3.0 |
added 939 characters in body
|
Jan 22, 2015 at 16:59 | history | edited | Ypnypn | CC BY-SA 3.0 |
added 803 characters in body
|
Jan 22, 2015 at 16:18 | comment | added | Fabio Filippi |
@Ypnypn sometimes endless loops create compiling errors, sometimes they "avoid" them: String x() {while(true);} is valid code.
|
|
Jan 22, 2015 at 8:08 | comment | added | Rodolfo Dias | This is exactly why I left Java for other people. So much stuff I had no idea it could be done in it... | |
Jan 21, 2015 at 18:51 | history | edited | Ypnypn | CC BY-SA 3.0 |
added 563 characters in body
|
Jan 21, 2015 at 8:23 | review | Suggested edits | |||
Jan 21, 2015 at 9:12 | |||||
Jan 21, 2015 at 4:16 | history | edited | Ypnypn | CC BY-SA 3.0 |
added 118 characters in body
|
Jan 20, 2015 at 22:44 | history | edited | Ypnypn | CC BY-SA 3.0 |
added 2270 characters in body
|
Jan 20, 2015 at 19:13 | comment | added | mbomb007 | Semi-colons are awesome! | |
Jan 20, 2015 at 0:34 | history | edited | Ypnypn | CC BY-SA 3.0 |
added 339 characters in body
|
Jan 20, 2015 at 0:22 | history | rollback | Ypnypn |
Rollback to Revision 6
|
|
Jan 19, 2015 at 21:01 | history | edited | Ypnypn | CC BY-SA 3.0 |
deleted 69 characters in body
|
Jan 19, 2015 at 20:56 | comment | added | Simon Forsberg | You just got down-voted, I guess this means you'll have to remove a snippet! ;) (The downvote was for "Java is weird") | |
Jan 19, 2015 at 19:52 | history | edited | Ypnypn | CC BY-SA 3.0 |
added 69 characters in body
|
Jan 19, 2015 at 19:41 | history | edited | Ypnypn | CC BY-SA 3.0 |
added 166 characters in body
|
Jan 19, 2015 at 19:35 | comment | added | Optimizer | Oh, you are right there. But it would be nice to add an explanation to that single line in your code itself. | |
Jan 19, 2015 at 19:34 | history | edited | Ypnypn | CC BY-SA 3.0 |
added 166 characters in body
|
Jan 19, 2015 at 19:33 | comment | added | Ypnypn | @Optimizer Yes - hence the word "often" | |
Jan 19, 2015 at 19:28 | comment | added | Ypnypn | @Optimizer Well, the infinite loop causes the statement to be unreachable, which causes the compile error, so it's transitively true. | |
Jan 19, 2015 at 17:48 | comment | added | Optimizer |
In java, infinite loops do not cause compiler error. Its your IDE that detects them and produce an error. Java simply has a concept of Unreachable statements, so if you have something like while(true); in your code, anything put after that line will throw a compile error of Unreachable statement. The logic behind detecting such statements is very strict, so it will not recognize all infinite loops by any means
|
|
Jan 19, 2015 at 17:17 | history | edited | Ypnypn | CC BY-SA 3.0 |
added 64 characters in body
|
Jan 19, 2015 at 16:43 | history | edited | Ypnypn | CC BY-SA 3.0 |
added 264 characters in body
|
Jan 19, 2015 at 16:09 | history | answered | Ypnypn | CC BY-SA 3.0 |