Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Community
General Chat
Test of name for maybe furture development/release threads.
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Heaplink" data-source="post: 66568" data-attributes="member: 8966"><p><span style="font-size: 12px"><span style="font-family: 'DejaVu Sans Mono'"><span style="color: #657a81"><span style="color: #b58900">public class</span> Demo {</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'DejaVu Sans Mono'"><span style="color: #657a81"> <span style="color: #b58900">private static final</span> String CONSTANT = <span style="color: #2aa198">"String"</span>;</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'DejaVu Sans Mono'"><span style="color: #657a81"> <span style="color: #b58900">private</span> Object o;</span></span></span></p><p> </p><p><span style="font-size: 12px"><span style="font-family: 'DejaVu Sans Mono'"><span style="color: #657a81"> <span style="color: #586e75">/**</span></span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'DejaVu Sans Mono'"><span style="color: #657a81"> <span style="color: #586e75">* Creates a new demo.</span></span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'DejaVu Sans Mono'"><span style="color: #657a81"> <span style="color: #586e75">* <span style="color: #d30102">@param</span> o The object to demonstrate.</span></span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'DejaVu Sans Mono'"><span style="color: #657a81"> <span style="color: #586e75">*/</span></span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'DejaVu Sans Mono'"><span style="color: #657a81"> <span style="color: #b58900">public</span> Demo(Object o) {</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'DejaVu Sans Mono'"><span style="color: #657a81"> <span style="color: #b58900">this</span>.o = o;</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'DejaVu Sans Mono'"><span style="color: #657a81"> String s = CONSTANT;</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'DejaVu Sans Mono'"><span style="color: #657a81"> <span style="color: #b58900">int</span> i = <span style="color: #2aa198">1</span>;</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'DejaVu Sans Mono'"><span style="color: #657a81"> }</span></span></span></p><p> </p><p><span style="font-size: 12px"><span style="font-family: 'DejaVu Sans Mono'"><span style="color: #657a81"> <span style="color: #b58900">public static void</span> main(String[] args) {</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'DejaVu Sans Mono'"><span style="color: #657a81"> Demo demo = <span style="color: #b58900">new</span> Demo();</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'DejaVu Sans Mono'"><span style="color: #657a81"> }</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'DejaVu Sans Mono'"><span style="color: #657a81">}</span></span></span></p></blockquote><p></p>
[QUOTE="Heaplink, post: 66568, member: 8966"] [SIZE=12px][FONT=DejaVu Sans Mono][COLOR=#657a81][COLOR=#b58900]public class[/COLOR] Demo {[/COLOR][/FONT][/SIZE] [SIZE=12px][FONT=DejaVu Sans Mono][COLOR=#657a81] [COLOR=#b58900]private static final[/COLOR] String CONSTANT = [COLOR=#2aa198]"String"[/COLOR];[/COLOR][/FONT][/SIZE] [SIZE=12px][FONT=DejaVu Sans Mono][COLOR=#657a81] [COLOR=#b58900]private[/COLOR] Object o;[/COLOR][/FONT][/SIZE] [SIZE=12px][FONT=DejaVu Sans Mono][COLOR=#657a81] [/COLOR][/FONT][/SIZE] [SIZE=12px][FONT=DejaVu Sans Mono][COLOR=#657a81] [COLOR=#586e75]/**[/COLOR][/COLOR][/FONT][/SIZE] [SIZE=12px][FONT=DejaVu Sans Mono][COLOR=#657a81] [COLOR=#586e75]* Creates a new demo.[/COLOR][/COLOR][/FONT][/SIZE] [SIZE=12px][FONT=DejaVu Sans Mono][COLOR=#657a81] [COLOR=#586e75]* [COLOR=#d30102]@param[/COLOR] o The object to demonstrate.[/COLOR][/COLOR][/FONT][/SIZE] [SIZE=12px][FONT=DejaVu Sans Mono][COLOR=#657a81] [COLOR=#586e75]*/[/COLOR][/COLOR][/FONT][/SIZE] [SIZE=12px][FONT=DejaVu Sans Mono][COLOR=#657a81] [COLOR=#b58900]public[/COLOR] Demo(Object o) {[/COLOR][/FONT][/SIZE] [SIZE=12px][FONT=DejaVu Sans Mono][COLOR=#657a81] [COLOR=#b58900]this[/COLOR].o = o;[/COLOR][/FONT][/SIZE] [SIZE=12px][FONT=DejaVu Sans Mono][COLOR=#657a81] String s = CONSTANT;[/COLOR][/FONT][/SIZE] [SIZE=12px][FONT=DejaVu Sans Mono][COLOR=#657a81] [COLOR=#b58900]int[/COLOR] i = [COLOR=#2aa198]1[/COLOR];[/COLOR][/FONT][/SIZE] [SIZE=12px][FONT=DejaVu Sans Mono][COLOR=#657a81] }[/COLOR][/FONT][/SIZE] [SIZE=12px][FONT=DejaVu Sans Mono][COLOR=#657a81] [/COLOR][/FONT][/SIZE] [SIZE=12px][FONT=DejaVu Sans Mono][COLOR=#657a81] [COLOR=#b58900]public static void[/COLOR] main(String[] args) {[/COLOR][/FONT][/SIZE] [SIZE=12px][FONT=DejaVu Sans Mono][COLOR=#657a81] Demo demo = [COLOR=#b58900]new[/COLOR] Demo();[/COLOR][/FONT][/SIZE] [SIZE=12px][FONT=DejaVu Sans Mono][COLOR=#657a81] }[/COLOR][/FONT][/SIZE] [SIZE=12px][FONT=DejaVu Sans Mono][COLOR=#657a81]}[/COLOR][/FONT][/SIZE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Community
General Chat
Test of name for maybe furture development/release threads.
Top