Editing Talk:221: Random Number

Jump to: navigation, search
Ambox notice.png Please sign your posts with ~~~~

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 4: Line 4:
 
:Java code for this would be something like "public static int fin(){}" or just "public int fin(){}". I think the code would still compile though without the public/private part. {{unsigned ip|188.114.106.41}}
 
:Java code for this would be something like "public static int fin(){}" or just "public int fin(){}". I think the code would still compile though without the public/private part. {{unsigned ip|188.114.106.41}}
 
::I know this comment is from several years ago, but I'll add this just for posterity. The "default" access modifier exists in java and is somewhere in between "private" and "protected". You can only use it by otherwise unspecifying the access modifier.[[Special:Contributions/108.162.215.187|108.162.215.187]] 16:40, 18 July 2016 (UTC)
 
::I know this comment is from several years ago, but I'll add this just for posterity. The "default" access modifier exists in java and is somewhere in between "private" and "protected". You can only use it by otherwise unspecifying the access modifier.[[Special:Contributions/108.162.215.187|108.162.215.187]] 16:40, 18 July 2016 (UTC)
:::To keep up with the tradition to answer year old posts, the method would be "package visible", i.e. all classes in the same package can see and access this method.[[User:Kimmerin|Kimmerin]] ([[User talk:Kimmerin|talk]]) 15:18, 27 January 2022 (UTC)
 
 
:How can Java come to mind when it is pure C syntax, which predates Java by several years and is arguably better known. A feature of most languages is that they have a "C-like syntax". See, a whole page on Wikipedia - http://en.wikipedia.org/wiki/List_of_C-based_programming_languages [[Special:Contributions/122.161.20.238|122.161.20.238]] 19:53, 22 August 2013 (UTC)
 
:How can Java come to mind when it is pure C syntax, which predates Java by several years and is arguably better known. A feature of most languages is that they have a "C-like syntax". See, a whole page on Wikipedia - http://en.wikipedia.org/wiki/List_of_C-based_programming_languages [[Special:Contributions/122.161.20.238|122.161.20.238]] 19:53, 22 August 2013 (UTC)
 
::"C-like syntax" is the best explain, this covers all. Even when I disagree that it's better known than Java these days.--[[User:Dgbrt|Dgbrt]] ([[User talk:Dgbrt|talk]]) 21:04, 22 August 2013 (UTC)
 
::"C-like syntax" is the best explain, this covers all. Even when I disagree that it's better known than Java these days.--[[User:Dgbrt|Dgbrt]] ([[User talk:Dgbrt|talk]]) 21:04, 22 August 2013 (UTC)

Please note that all contributions to explain xkcd may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see explain xkcd:Copyrights for details). Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel | Editing help (opens in new window)

Template used on this page: