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
එක පැකේජ් එකයි මාසෙටම Unlimited Internet. තාමත් DATA CARD දාන්න සල්ලි වියදම් කරනවද? අඩුම මිලට අපෙන්.
sayuru bandara
Updated:
Tuesday at 12:30 PM
Ad icon
ඉන්ටර්නෙට් එකෙන් හරියටම සල්ලි හොයන්න සහ Success වෙන්න කැමතිද? 🚀 (E-Money & Success Stories)
siri sumana
Updated:
Saturday at 11:44 PM
Gemini AI PRO 18 months Offer
Hawaka
Updated:
May 27, 2026
Ad icon
koko account
DasunEranga
Updated:
May 27, 2026
Ad icon
koko account
DasunEranga
Updated:
May 27, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Talk!
UDP Socket Programming in 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="MihiCherub" data-source="post: 17162681" data-attributes="member: 238676"><p><span style="font-size: 12px">ඔව් IOException එකෙන් catch කරනව. ඒත් එතන log එක අයින් කලේ exe කලාට පස්සෙ ඔක්කොම exception logs, error කියල file එකකට save කරනවනෙ. ඉතිං internet connection නැති එක error එකක් නොවන නිස ඒ log එක අයින් කලා. ඔය try-catch එක auto වැටෙන එකක් නෙ. UnknownHostException වෙනුවට IOException වැටුනෙ ඇයි කියල හරියටම මීටර් නෑ.</span></p><p><span style="font-size: 12px">3000 කියන්නෙ time out එක. උබ පාවිච්චි කරන IDE එක මොකද්ද? CTRL+SPACE ගහපුවාම පැරාවලින් ඕනෙ මොනාද කියල Netbeans IDE එකෙන් නම් හොදටම බලාගන්න පුලුවන්.</span></p><p></p><p><span style="font-size: 12px">මම දාපු 3න් වෙනි කෝඩ් එකෙත් එහෙමයි array සයිස් එකක් නැතුව කෙලින්ම තියෙන තරම එනව.</span></p><p><span style="font-size: 12px">InetAddress ip[] = InetAddress.getAllByName(host);</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">ඒකෙ තියරිය නම් දන්නෙ නෑ. ඕනෙ නම් arrays questions ටිකක් එවන්නම් ඒකෙන් තේරුම් ගන්න පුලුවන් වෙයි, අද බෑ ඩෙස්ක්ටොප් එකේ තියෙන්නෙ. ඒකෙ මොනිටරේත් ලැපට ගහල. හෙට එවන්නම්.</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">සාම්න්යෙන් මෙහෙමත් කරන්න පුලුවන් array size එකක් දෙන්නෙ නැතුව.</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">String a[] = new String{"A","B","C","D"};</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">String name = "Hello-World-Elakiri-Thread";</span></p><p><span style="font-size: 12px">String b[] = name.split("-");</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">තියරිය නම් දන්නෙ නෑ.</span></p><p><span style="font-size: 12px">කෝමේ අනිත් ජාව වැඩ්ඩො ටික.. </span></p></blockquote><p></p>
[QUOTE="MihiCherub, post: 17162681, member: 238676"] [SIZE=3]ඔව් IOException එකෙන් catch කරනව. ඒත් එතන log එක අයින් කලේ exe කලාට පස්සෙ ඔක්කොම exception logs, error කියල file එකකට save කරනවනෙ. ඉතිං internet connection නැති එක error එකක් නොවන නිස ඒ log එක අයින් කලා. ඔය try-catch එක auto වැටෙන එකක් නෙ. UnknownHostException වෙනුවට IOException වැටුනෙ ඇයි කියල හරියටම මීටර් නෑ. 3000 කියන්නෙ time out එක. උබ පාවිච්චි කරන IDE එක මොකද්ද? CTRL+SPACE ගහපුවාම පැරාවලින් ඕනෙ මොනාද කියල Netbeans IDE එකෙන් නම් හොදටම බලාගන්න පුලුවන්.[/SIZE] [SIZE=3]මම දාපු 3න් වෙනි කෝඩ් එකෙත් එහෙමයි array සයිස් එකක් නැතුව කෙලින්ම තියෙන තරම එනව. InetAddress ip[] = InetAddress.getAllByName(host); ඒකෙ තියරිය නම් දන්නෙ නෑ. ඕනෙ නම් arrays questions ටිකක් එවන්නම් ඒකෙන් තේරුම් ගන්න පුලුවන් වෙයි, අද බෑ ඩෙස්ක්ටොප් එකේ තියෙන්නෙ. ඒකෙ මොනිටරේත් ලැපට ගහල. හෙට එවන්නම්. සාම්න්යෙන් මෙහෙමත් කරන්න පුලුවන් array size එකක් දෙන්නෙ නැතුව. String a[] = new String{"A","B","C","D"}; String name = "Hello-World-Elakiri-Thread"; String b[] = name.split("-"); තියරිය නම් දන්නෙ නෑ. කෝමේ අනිත් ජාව වැඩ්ඩො ටික.. [/SIZE] [/QUOTE]
Insert quotes…
Verification
Hata thunen beduwama keeyada? (60 bedeema thuna)
Post reply
Top
Bottom