Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Ad icon
Jobreceive.com for sale
Blogerwiki
Updated:
Tuesday at 8:55 PM
Post Your Vehicle for Sale — FREE! - https://libro.lk
Kalu_Puth
Updated:
Tuesday at 7:38 PM
ඔයාගෙ Assignment හෝ Thesis එක හරියට හදාගමු
ErMurazor
Updated:
Saturday at 10:52 PM
Ad icon
BlackWall V2ray servers
hu KANNA
Updated:
Sep 23, 2026
Peppa Pig Family Plush Toy Set – 5 Characters
anil1961
Updated:
Sep 19, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
Education
Java දැණුම බෙදාගමු...
Get the App
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
.
Message
<blockquote data-quote="Mihindu_Gajaba" data-source="post: 12577425" data-attributes="member: 22875"><p>parameterIndex kiyanne Parameter ekak with the type int <img src="/styles/default/xenforo/smilies/default/happy.gif" class="smilie" loading="lazy" alt=":)" title="Happy :)" data-shortname=":)" />, obviously setInt is a function (method) so that when ever you call the method you have to pass two parameters parameterIndex and x</p><p></p><p>setInt(1,10) ( jst a example ) so that u can manipulate parameterIndex variable inside the method as well as the x variable, it has no fix task, the task what parameterIndex does is depends on the cording which your including inside the method,</p><p></p><p>in this case it will just print the sum </p><p></p><p>public void getSum(int parameterIndex, int x)</p><p>{</p><p> int total = 0;</p><p> total = parameterIndex + x;</p><p> System.out.println("Sum : " + total);</p><p>}</p><p></p><p></p><p>getSum(1,9);</p><p>output:</p><p>Sum : 10</p></blockquote><p></p>
[QUOTE="Mihindu_Gajaba, post: 12577425, member: 22875"] parameterIndex kiyanne Parameter ekak with the type int :), obviously setInt is a function (method) so that when ever you call the method you have to pass two parameters parameterIndex and x setInt(1,10) ( jst a example ) so that u can manipulate parameterIndex variable inside the method as well as the x variable, it has no fix task, the task what parameterIndex does is depends on the cording which your including inside the method, in this case it will just print the sum public void getSum(int parameterIndex, int x) { int total = 0; total = parameterIndex + x; System.out.println("Sum : " + total); } getSum(1,9); output: Sum : 10 [/QUOTE]
Insert quotes…
Verification
Awruddata maasa keeyada?
Post reply
Top
Bottom