අනිවා කුකුලෝහ් පුළුවන්නම් මට PM කරපන් අලුත් thread එකක් ඒ කියන්නේ part ii එක විදියට දාමු.. නැත්තම් උඹම දාපංකෝ. මතක ඇතුව නීති ටික කියපංඅඩෝ සිඞ්හලූ
අපිටත් ප්රශ්න දැම්මෑකිද![]()

අනිවා කුකුලෝහ් පුළුවන්නම් මට PM කරපන් අලුත් thread එකක් ඒ කියන්නේ part ii එක විදියට දාමු.. නැත්තම් උඹම දාපංකෝ. මතක ඇතුව නීති ටික කියපං![]()

ලූප් කෑළි while(true) කෑලි වලිං ගහගනිද්දි වලිය බේරන්න ගිහිං ඉන්ෆිනිටි ලූප් එහෙක හිරවුනාම ආතල් එක



මට බෑ ඔව්ව දාල ත්රෙඩ් එකේ යන වලි විසඳන්න![]()
කෝමද for(;ලූප් කෑළි while(true) කෑලි වලිං ගහගනිද්දි වලිය බේරන්න ගිහිං ඉන්ෆිනිටි ලූප් එහෙක හිරවුනාම ආතල් එක
![]()
උඹම දාපං
ඇයි මේකට මොකෑ වෙලා තියෙන්නෙ![]()
![]()


මේකට මොකවත් වෙලා නෑ සිංහලයෝ.. අර එකෙක් දැං මාසයක් තිස්සි ආච්චි සීයා ගේ මැදින් ගියපු ඒවා දාන්නේ අපි අලුත් එකක් දැම්මාම මක්කෙයි වෙන්නේ
නැත්තම් අච්චාරු වෙනවා බං හොයන්න බෑ කට්ටියට නැත්තම් bump වෙන්නෙත් නෑ..


දාපං දාපං
දාන්න කලින් දෙනව කියපු රෙප් ටික දීල ඉඳපං රෙප් වලිං නාවනව කිව්ව එකක් හම්බුන්නෑ![]()
![]()

using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EK
{
class Program
{
[STAThread]
static void Main(string[] args)
{
Console.WriteLine("Please Enter Your Numbers with Comma Seperated");
SortNumbers();
Console.WriteLine("Press enter to close...");
Console.ReadLine();
}
public static void SortNumbers()
{
try
{
string numbers = Console.ReadLine();
string[] arr = numbers.Split(',');
ArrayList al = new ArrayList();
for (int i = 0; i < arr.Length; i++)
{
al.Add(int.Parse(arr[i].ToString()));
}
al.Sort();
Console.WriteLine("------------------------------------------------------");
foreach (int item in al)
{
Console.WriteLine(item.ToString());
}
}
catch (FormatException)
{
Console.WriteLine("Invalid Input");
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
finally
{
}
}
}
}
Adai Thread aka dakke machan. Santhosai meka patan gaththata. Apita ape weradi hadagannath hoda change akak.
Man 1st Problem ska solve kala. C# walin. Balanna meka harida kiyala
Code:using System; using System.Collections.Generic; using System.Collections; using System.Linq; using System.Text; using System.Threading.Tasks; namespace EK { class Program { [STAThread] static void Main(string[] args) { Console.WriteLine("Please Enter Your Numbers with Comma Seperated"); SortNumbers(); Console.WriteLine("Press enter to close..."); Console.ReadLine(); } public static void SortNumbers() { try { string numbers = Console.ReadLine(); string[] arr = numbers.Split(','); ArrayList al = new ArrayList(); for (int i = 0; i < arr.Length; i++) { al.Add(int.Parse(arr[i].ToString())); } [COLOR="Red"]al.Sort();[/COLOR] Console.WriteLine("------------------------------------------------------"); foreach (int item in al) { Console.WriteLine(item.ToString()); } } catch (FormatException) { Console.WriteLine("Invalid Input"); } catch (Exception ex) { Console.WriteLine(ex.Message); } finally { } } } }


දීල තියෙන ෆන්ක්ශන්ස් පාවිච්චි කල්ල සෝට් කරන්න නෙමේ දුන්නෙ![]()
උඹම ලූප් ලියල උඹම මැනුවලි සෝට් කරන්න ඕනෙ![]()
![]()

Fine.
Using System.getProperty("line.separator").
Ungolfed:
PHP:class X { public static void main (String[] args) { System.out.println(new String(new char[1000]).replace("\0", "A" + System.getProperty("line.separator"))); } }
Golfed (150 bytes):
PHP:class X{public static void main (String[] a){System.out.println(new String(new char[1000]).replace("\0", "A"+System.getProperty("line.separator")));}}


hah.It is not accepted.means u cannot use new line character.here u already use it
And use JAVA![]()
Make a 1000 Line of 'A' without using for,while,do..while..goto..
or the new line character(\n) and with the least amount of codes.



That is correct.nicely solved![]()
OKThat is correct.
Cheers lads.
Solution was Java Recursion. That came to attention from one of my cousin's question. Inspired to follow it.

Ya Java Recursion.I was expecting that.![]()

