{"id":244,"date":"2009-11-01T12:57:00","date_gmt":"1970-01-01T00:00:00","guid":{"rendered":"http:\/\/www.yazilimmutfagi.com\/?p=244"},"modified":"2009-11-01T12:57:00","modified_gmt":"1970-01-01T00:00:00","slug":"string-sinifi","status":"publish","type":"post","link":"https:\/\/www.yazilimmutfagi.com\/index.php\/2009\/11\/01\/string-sinifi\/","title":{"rendered":"String sinifi"},"content":{"rendered":"<p>\n<meta content=\"text\/html; charset=utf-8\" http-equiv=\"Content-Type\" \/><\/p>\n<p class=\"Standard\"><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\">Merhabalar.<o:p><\/o:p><\/span><\/p>\n<p class=\"Standard\"><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\">Bundan &ouml;nceki makalemde <b>String<\/b> sinifina giris yapmistim. Bu makalede hem bu konuyu biraz daha a&ccedil;mak hem de <b>StringBuilder<\/b> sinifina giris yapmak istiyorum.<o:p><\/o:p><\/span><\/p>\n<p class=\"Standard\"><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\">Ayrica <i>etkin (efektif) programlama<\/i><em>ya<\/em> g&uuml;zel bir &ouml;rnek olacak bir uygulama yapacagiz.<o:p><\/o:p><\/span><\/p>\n<p class=\"Standard\"><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\"><o:p>&nbsp;<a href='www.yazilimmutfagi.com'>.<\/a><\/o:p><\/span><\/p>\n<p class=\"Standard\"><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\">&Ouml;ncelikle <b>StringBuilder <\/b>nedir, kisaca deginelim. <b>StringBuilder <\/b>birden fazla String&#8217;in birlestirilmesi gerektigi zaman kullanacagimiz siniftir ve String sinifindan &ccedil;ok daha hizlidir. Bir nev&icirc;, String&#8217;lerden olusan kolleksiyondur diyebiliriz.<o:p><\/o:p><\/span><\/p>\n<p class=\"Standard\"><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\"><span style=\"\">&nbsp;<\/span><o:p><\/o:p><\/span><\/p>\n<p class=\"Standard\"><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\">&Ouml;rnek verecek olursak:<o:p><\/o:p><\/span><\/p>\n<table cellspacing=\"0\" cellpadding=\"0\" border=\"1\" style=\"border: medium none ; background: rgb(242, 242, 242) none repeat scroll 0% 0%; margin-left: 5.4pt; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; border-collapse: collapse;\" class=\"MsoTableGrid\">\n    <tbody>\n        <tr style=\"\">\n            <td width=\"576\" valign=\"top\" style=\"border: 1pt solid black; padding: 0cm 5.4pt; width: 432.35pt;\">\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;\">Dim<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"> ad, soyad, kimlik <span style=\"color: blue;\">As<\/span> <span style=\"color: blue;\">String<o:p><\/o:p><\/span><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">ad = <span style=\"color: rgb(163, 21, 21);\">&quot;Ahmet&quot;<o:p><\/o:p><\/span><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">soyad = <span style=\"color: rgb(163, 21, 21);\">&quot;Tanriverdi&quot;<o:p><\/o:p><\/span><\/span><\/p>\n            <p class=\"MsoNoSpacing\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">kimlik = ad + <span style=\"color: rgb(163, 21, 21);\">&quot;   &quot;<\/span> + soyad<\/span><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\"><o:p><\/o:p><\/span><\/p>\n            <\/td>\n        <\/tr>\n    <\/tbody>\n<\/table>\n<p class=\"Standard\"><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\"><o:p>&nbsp;<\/o:p><\/span><\/p>\n<p class=\"Standard\"><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\">Eger String ile &ccedil;alisacaksak bu sekilde yapabiliriz. Fakat tercihimiz <b>StringBuilder<\/b> olacaksa:<o:p><\/o:p><\/span><\/p>\n<table cellspacing=\"0\" cellpadding=\"0\" border=\"1\" style=\"border: medium none ; background: rgb(242, 242, 242) none repeat scroll 0% 0%; margin-left: 5.4pt; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; border-collapse: collapse;\" class=\"MsoTableGrid\">\n    <tbody>\n        <tr style=\"\">\n            <td width=\"576\" valign=\"top\" style=\"border: 1pt solid black; padding: 0cm 5.4pt; width: 432.35pt;\">\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;\">Dim<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"> kimlik <span style=\"color: blue;\">As<\/span> StringBuilder = <span style=\"color: blue;\">New<\/span>   StringBuilder()<o:p><\/o:p><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">kimlik.Append(<span style=\"color: rgb(163, 21, 21);\">&quot;Ahmet&quot;<\/span>)<o:p><\/o:p><\/span><\/p>\n            <p class=\"MsoNoSpacing\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">kimlik.Append(<span style=\"color: rgb(163, 21, 21);\">&quot;   Tanriverdi&quot;<\/span>)<\/span><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\"><o:p><\/o:p><\/span><\/p>\n            <\/td>\n        <\/tr>\n    <\/tbody>\n<\/table>\n<p class=\"Standard\"><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\"><o:p>&nbsp;<\/o:p><\/span><\/p>\n<p style=\"\" class=\"Standard\"><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\">seklinde olur. Sonu&ccedil; aynidir. Fakat kullanilan komponentler (String &ndash; StringBuilder) degisiktir.<o:p><\/o:p><\/span><\/p>\n<p style=\"\" class=\"Standard\"><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\"><o:p>&nbsp;<\/o:p><\/span><\/p>\n<p style=\"\" class=\"Standard\"><b><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\">StringBuilder<\/span><\/b><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\">&#8216;i kisaca tanidiktan sonra, daha kapsamli bir &ouml;rnek ile String &ndash; StringBuilder karsilastirmasi yapip, aradaki asil farkin ne oldugunu g&ouml;relim.<o:p><\/o:p><\/span><\/p>\n<p style=\"\" class=\"Standard\"><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\"><o:p>&nbsp;<\/o:p><\/span><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\"> <a href='www.yazilimmutfagi.com'>.<\/a><\/span><\/p>\n<p style=\"\" class=\"Standard\"><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\">Uygulamamizin amaci 0&#8217;dan, disaridan verilen bir sayi arasindaki asal sayilari bulmak olsun.<o:p><\/o:p><\/span><\/p>\n<p style=\"\" class=\"Standard\"><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\"><o:p>&nbsp;<\/o:p><\/span><\/p>\n<p style=\"\" class=\"Standard\"><span style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\"><!--[if gte vml 1]><v:shapetype\nid=\"_x0000_t75\" coordsize=\"21600,21600\" o:spt=\"75\" o:preferrelative=\"t\"\npath=\"m@4@5l@4@11@9@11@9@5xe\" filled=\"f\" stroked=\"f\">\n<v:stroke joinstyle=\"miter\" \/>\n<v:formulas>\n<v:f eqn=\"if lineDrawn pixelLineWidth 0\" \/>\n<v:f eqn=\"sum @0 1 0\" \/>\n<v:f eqn=\"sum 0 0 @1\" \/>\n<v:f eqn=\"prod @2 1 2\" \/>\n<v:f eqn=\"prod @3 21600 pixelWidth\" \/>\n<v:f eqn=\"prod @3 21600 pixelHeight\" \/>\n<v:f eqn=\"sum @0 0 1\" \/>\n<v:f eqn=\"prod @6 1 2\" \/>\n<v:f eqn=\"prod @7 21600 pixelWidth\" \/>\n<v:f eqn=\"sum @8 21600 0\" \/>\n<v:f eqn=\"prod @7 21600 pixelHeight\" \/>\n<v:f eqn=\"sum @10 21600 0\" \/>\n<\/v:formulas>\n<v:path o:extrusionok=\"f\" gradientshapeok=\"t\" o:connecttype=\"rect\" \/>\n<o:lock v:ext=\"edit\" aspectratio=\"t\" \/>\n<\/v:shapetype><v:shape id=\"Resim_x0020_1\" o:spid=\"_x0000_i1025\" type=\"#_x0000_t75\"\nstyle='width:447pt;height:363pt;visibility:visible;mso-wrap-style:square'>\n<v:imagedata src=\"file:\/\/\/C:\\Users\\tt\\AppData\\Local\\Temp\\msohtmlclip1\\01\\clip_image001.png\"\no:title=\"\" \/>\n<\/v:shape><![endif]--><!--[if !vml]--><img decoding=\"async\" loading=\"lazy\" width=\"596\" height=\"484\" v:shapes=\"Resim_x0020_1\" alt=\"\" src=\"http:\/\/www.yazilimmutfagi.com\/yuklenendosyalar\/image\/resim1_sbuilder.jpg\" \/><!--[endif]--><\/span><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\"><o:p><\/o:p><\/span><\/p>\n<p style=\"\" class=\"Standard\"><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\"><o:p>&nbsp;<\/o:p><\/span><\/p>\n<p style=\"\" class=\"Standard\"><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\">G&ouml;r&uuml;ld&uuml;g&uuml; gibi 6 tane textbox, 3 tane de button kullanacagiz. Bulunan asal sayilarin yazilacagi textbox&#8217;lari &#8216;<i>multiline<\/i>&#8216; yapmayi unutmuyoruz!<o:p><\/o:p><\/span><\/p>\n<p style=\"\" class=\"Standard\"><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\"><o:p>&nbsp;<\/o:p><\/span><\/p>\n<p style=\"\" class=\"Standard\"><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\">Kodlarimiz ise su sekilde:<o:p><\/o:p><\/span><\/p>\n<p style=\"\" class=\"Standard\"><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\"><o:p>&nbsp;<\/o:p><\/span><\/p>\n<table cellspacing=\"0\" cellpadding=\"0\" border=\"1\" style=\"border: medium none ; background: rgb(242, 242, 242) none repeat scroll 0% 0%; margin-left: 5.4pt; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; border-collapse: collapse;\" class=\"MsoTableGrid\">\n    <tbody>\n        <tr style=\"\">\n            <td width=\"576\" valign=\"top\" style=\"border: 1pt solid black; padding: 0cm 5.4pt; width: 432.35pt;\">\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;\">Imports<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"> System.Text<o:p><\/o:p><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;\">&#8216;StringBuilder   i&ccedil;n gerekli<o:p><\/o:p><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;\">Public<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"> <span style=\"color: blue;\">Class<\/span>   Form1<o:p><\/o:p><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">Private<\/span> <span style=\"color: blue;\">Sub<\/span> btnHesapla1_Click(<span style=\"color: blue;\">ByVal<\/span>   sender <span style=\"color: blue;\">As<\/span> System.Object, <span style=\"color: blue;\">ByVal<\/span> e <span style=\"color: blue;\">As<\/span>   System.EventArgs) <span style=\"color: blue;\">Handles<\/span> btnHesapla1.Click<o:p><\/o:p><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">Dim<\/span>   i, j, x, intSayi <span style=\"color: blue;\">As<\/span> <span style=\"color: blue;\">Integer<o:p><\/o:p><\/span><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">Dim<\/span>   AsalSayi <span style=\"color: blue;\">As<\/span> <span style=\"color: blue;\">Boolean<o:p><\/o:p><\/span><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>txtSonuc1.Text = vbNullString<o:p><\/o:p><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>intSayi = txtSayi.Text<o:p><\/o:p><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">For<\/span> i   = 1 <span style=\"color: blue;\">To<\/span> intSayi<o:p><\/o:p><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>AsalSayi = <span style=\"color: blue;\">True<o:p><\/o:p><\/span><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>j = i &#8211; 1<o:p><\/o:p><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">For<\/span>   x = 2 <span style=\"color: blue;\">To<\/span> j<o:p><\/o:p><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">If<\/span>   i <span style=\"color: blue;\">Mod<\/span> x = 0 <span style=\"color: blue;\">Then<o:p><\/o:p><\/span><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>AsalSayi = <span style=\"color: blue;\">False<o:p><\/o:p><\/span><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">Exit<\/span>   <span style=\"color: blue;\">For<o:p><\/o:p><\/span><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">End<\/span>   <span style=\"color: blue;\">If<o:p><\/o:p><\/span><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">Next<\/span>   x<o:p><\/o:p><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">If<\/span>   AsalSayi = <span style=\"color: blue;\">True<\/span> <span style=\"color: blue;\">Then<o:p><\/o:p><\/span><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>txtSonuc1.Text = txtSonuc1.Text   &amp; i &amp; vbCrLf<o:p><\/o:p><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">End<\/span>   <span style=\"color: blue;\">If<o:p><\/o:p><\/span><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">Next<\/span>   i<o:p><\/o:p><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">End<\/span> <span style=\"color: blue;\">Sub<o:p><\/o:p><\/span><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">Private<\/span> <span style=\"color: blue;\">Sub<\/span> btnHesapla2_Click(<span style=\"color: blue;\">ByVal<\/span>   sender <span style=\"color: blue;\">As<\/span> System.Object, <span style=\"color: blue;\">ByVal<\/span> e <span style=\"color: blue;\">As<\/span>   System.EventArgs) <span style=\"color: blue;\">Handles<\/span> btnHesapl2.Click<o:p><\/o:p><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">Dim<\/span>   J, I, X <span style=\"color: blue;\">As<\/span> <span style=\"color: blue;\">Integer<o:p><\/o:p><\/span><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">Dim<\/span>   AsalSayi <span style=\"color: blue;\">As<\/span> <span style=\"color: blue;\">Boolean<o:p><\/o:p><\/span><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">Dim<\/span>   intSayi <span style=\"color: blue;\">As<\/span> <span style=\"color: blue;\">Integer<o:p><\/o:p><\/span><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">Dim<\/span>   Sayi <span style=\"color: blue;\">As<\/span> <span style=\"color: blue;\">String<\/span>   = <span style=\"color: blue;\">String<\/span>.Empty<o:p><\/o:p><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>txtSonuc2.Text = vbNullString<o:p><\/o:p><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>intSayi = <span style=\"color: blue;\">CInt<\/span>(txtSayi2.Text)<o:p><\/o:p><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">For<\/span> I   = 1 <span style=\"color: blue;\">To<\/span> intSayi<o:p><\/o:p><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>AsalSayi = <span style=\"color: blue;\">True<o:p><\/o:p><\/span><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>X = I &#8211; 1<o:p><\/o:p><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">For<\/span>   J = 2 <span style=\"color: blue;\">To<\/span> X<o:p><\/o:p><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;<\/span><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">If<\/span>   I <span style=\"color: blue;\">Mod<\/span> J = 0 <span style=\"color: blue;\">Then<o:p><\/o:p><\/span><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>AsalSayi = <span style=\"color: blue;\">False<o:p><\/o:p><\/span><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">Exit<\/span>   <span style=\"color: blue;\">For<o:p><\/o:p><\/span><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">End<\/span>   <span style=\"color: blue;\">If<o:p><\/o:p><\/span><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">Next<\/span>   J<o:p><\/o:p><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">If<\/span>   AsalSayi = <span style=\"color: blue;\">True<\/span> <span style=\"color: blue;\">Then<o:p><\/o:p><\/span><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Sayi &amp;= I &amp; vbCrLf<o:p><\/o:p><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">End<\/span>   <span style=\"color: blue;\">If<o:p><\/o:p><\/span><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">Next<\/span>   I<o:p><\/o:p><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>txtSonuc2.Text = Sayi<o:p><\/o:p><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">End<\/span> <span style=\"color: blue;\">Sub<o:p><\/o:p><\/span><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">Private<\/span> <span style=\"color: blue;\">Sub<\/span> btnHesapla3_Click(<span style=\"color: blue;\">ByVal<\/span>   sender <span style=\"color: blue;\">As<\/span> System.Object, <span style=\"color: blue;\">ByVal<\/span> e <span style=\"color: blue;\">As<\/span>   System.EventArgs) <span style=\"color: blue;\">Handles<\/span> btnHesapla3.Click<o:p><\/o:p><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">Dim<\/span>   J, I, X <span style=\"color: blue;\">As<\/span> <span style=\"color: blue;\">Integer<o:p><\/o:p><\/span><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">Dim<\/span>   AsalSayi <span style=\"color: blue;\">As<\/span> <span style=\"color: blue;\">Boolean<o:p><\/o:p><\/span><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">Dim<\/span>   intSayi <span style=\"color: blue;\">As<\/span> <span style=\"color: blue;\">Integer<o:p><\/o:p><\/span><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">Dim<\/span>   Sayi <span style=\"color: blue;\">As<\/span> <span style=\"color: blue;\">New<\/span>   StringBuilder<o:p><\/o:p><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>txtSonuc3.Text = vbNullString<o:p><\/o:p><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>intSayi = <span style=\"color: blue;\">CInt<\/span>(txtSayi3.Text)<o:p><\/o:p><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">For<\/span> I   = 1 <span style=\"color: blue;\">To<\/span> intSayi<o:p><\/o:p><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>AsalSayi = <span style=\"color: blue;\">True<o:p><\/o:p><\/span><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>X = I &#8211; 1<o:p><\/o:p><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">For<\/span>   J = 2 <span style=\"color: blue;\">To<\/span> X<o:p><\/o:p><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">If<\/span>   I <span style=\"color: blue;\">Mod<\/span> J = 0 <span style=\"color: blue;\">Then<o:p><\/o:p><\/span><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>AsalSayi = <span style=\"color: blue;\">False<o:p><\/o:p><\/span><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">Exit<\/span>   <span style=\"color: blue;\">For<o:p><\/o:p><\/span><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">End<\/span>   <span style=\"color: blue;\">If<o:p><\/o:p><\/span><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">Next<\/span>   J<o:p><\/o:p><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">If<\/span>   AsalSayi = <span style=\"color: blue;\">True<\/span> <span style=\"color: blue;\">Then<o:p><\/o:p><\/span><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Sayi.Append(I &amp; vbCrLf)<o:p><\/o:p><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">End<\/span>   <span style=\"color: blue;\">If<o:p><\/o:p><\/span><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">Next<\/span>   I<o:p><\/o:p><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>txtSonuc3.Text = Sayi.ToString<o:p><\/o:p><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">End<\/span> <span style=\"color: blue;\">Sub<o:p><\/o:p><\/span><\/span><\/p>\n            <p style=\"\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;\">End<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"> <span style=\"color: blue;\">Class<o:p><\/o:p><\/span><\/span><\/p>\n            <\/td>\n        <\/tr>\n    <\/tbody>\n<\/table>\n<p style=\"\" class=\"Standard\"><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\"><o:p>&nbsp;<\/o:p><\/span><\/p>\n<p style=\"\" class=\"Standard\"><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\"><o:p>&nbsp;<\/o:p><\/span><\/p>\n<p style=\"\" class=\"Standard\"><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\">Kodlarin tek tek a&ccedil;iklamasini yapmayacagim. Fakat &ccedil;alisma mekanizmasina biraz deginmek istiyorum.<o:p><\/o:p><\/span><\/p>\n<p style=\"\" class=\"Standard\"><i><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\">Hesapla 1 <\/span><\/i><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\">butonuna tikladigimizda, evvela 0 ile verilen sayi arasindaki asal sayilar <b>For<\/b> &ndash; d&ouml;ng&uuml;leri ile bulunuyor; <u>bulunan sayi hemen ilgili textbox&#8217;a yaziliyor.<\/u><i><o:p><\/o:p><\/i><\/span><\/p>\n<p style=\"\" class=\"Standard\"><u><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\"><o:p><span style=\"text-decoration: none;\">&nbsp;<\/span><\/o:p><\/span><\/u><\/p>\n<p style=\"\" class=\"Standard\"><i><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\">Hesapla 2 <\/span><\/i><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\">butonuna tiklandiginda, yine asal sayilar tesbit ediliyor, fakat bu sefer hemen ilgili textbox&#8217;a yazilmiyor. Peki ne oluyor? String seklinde tanimladigimiz <i>Sayi <\/i>degiskeninine ekleniyor. Bu programimiza bir hayli hiz kazandirir. &Ccedil;&uuml;nk&uuml; her asal sayi bulundugunda gidip textbox&#8217;a yazmak zorunda kalmaz.<i><o:p><\/o:p><\/i><\/span><\/p>\n<p style=\"\" class=\"Standard\"><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\"><o:p>&nbsp;<\/o:p><\/span><\/p>\n<p style=\"\" class=\"Standard\"><i><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\">Hesapla 3 <\/span><\/i><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\">butonuna tiklandiginda ise <b>StringBuilder<\/b> kullaniliyor. Bu da <i>Hesapla 2 <\/i>butonunun kodlariyla benzer sekilde calisir. Fakat basta da belirttigimiz gibi <b>StringBuilder<\/b> String&#8217;den daha hizlidir.<i><o:p><\/o:p><\/i><\/span><\/p>\n<p style=\"\" class=\"Standard\"><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\"><o:p>&nbsp;<\/o:p><\/span><\/p>\n<p style=\"\" class=\"Standard\"><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\">Programi yazip &ccedil;alistirdiktan sonra 3 ayri kodun &ccedil;alisma hizlari arasindaki b&uuml;y&uuml;k farki siz de g&ouml;receksiniz.<o:p><\/o:p><\/span><\/p>\n<p style=\"\" class=\"Standard\"><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\"><o:p>&nbsp;<\/o:p><\/span><\/p>\n<p style=\"\" class=\"Standard\"><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\">Bu uygulamayi daha iyi anlatabilmek i&ccedil;in g&uuml;ndelik hayattan bir sey ile benzetme yapacagim. Temsilde hat&acirc; olmaz derler; bilgisayar pogramlarinin isleme mekanizmasi ile g&uuml;ndelik islerimizinki bire bir uymasa da b&uuml;y&uuml;k benzerlikler g&ouml;sterebiliyorlar \ud83d\ude42<o:p><\/o:p><\/span><\/p>\n<p style=\"\" class=\"Standard\"><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\"><o:p>&nbsp;<\/o:p><\/span><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\"> <a href='www.yazilimmutfagi.com'>.<\/a><\/span><\/p>\n<p style=\"\" class=\"Standard\"><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\">Bir kahvehane d&uuml;s&uuml;n&uuml;n. &Ccedil;aycimiz 20 tane &ccedil;ay siparisi aliyor.<o:p><\/o:p><\/span><\/p>\n<p style=\"\" class=\"Standard\"><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\">Bu &ccedil;aylari <i>Hesapla 1 <\/i>butonunun altina yazilmis kodlarin isleme mekanizmasiyla servis ederse: &Ouml;nce &ccedil;ay ocagina gelir, &ccedil;ayi doldurup sekeri, kasigi, vs koyar ve o tek &ccedil;ay bardagini ilgili masaya g&ouml;t&uuml;r&uuml;r. Bu islemi tam 20 kere yapar; 20 kere &ccedil;ay doldurur, 20 kere masa ile &ccedil;ay ocagi arasinda gider gelir&#8230;<i><o:p><\/o:p><\/i><\/span><\/p>\n<p style=\"\" class=\"Standard\"><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\"><o:p>&nbsp;<\/o:p><\/span><\/p>\n<p style=\"\" class=\"Standard\"><i><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\">Hesapla 2 <\/span><\/i><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\">butonuna ait kodlar gibi &ccedil;alisirsa: Eline bir tepsi alir, 20 bardak &ccedil;ayi <i>yavas yavas<\/i> tepsiye dizer ve ilgili masalara <i>acele etmeden<\/i> g&ouml;t&uuml;r&uuml;r&#8230;<i><o:p><\/o:p><\/i><\/span><\/p>\n<p style=\"\" class=\"Standard\"><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\"><o:p>&nbsp;<\/o:p><\/span><i><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\">Hesapla 3&#8242;<\/span><\/i><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\">e ait kodlardaki gibi &ccedil;alisirsa (StringBuilder): Yine eline bir tepsi alir, &ccedil;aylari hizlica doldurur ve servis eder&#8230;<i><o:p><\/o:p><\/i><\/span><\/p>\n<p style=\"\" class=\"Standard\"><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\"><o:p>&nbsp;<\/o:p><\/span><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\">String ile StringBuilder arasindaki fark da buna benzer.<o:p><\/o:p><\/span><\/p>\n<p style=\"\" class=\"Standard\"><a href=\"http:\/\/www.yazilimmutfagi.com\/yuklenendosyalar\/file\/String-StringBuilder.rar\">Proje kaynak kodlari<\/a><\/p>\n<p style=\"\" class=\"Standard\"><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\"><o:p>&nbsp;<\/o:p><\/span><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\">Baska bir makalede g&ouml;r&uuml;smek &uuml;zere&#8230;<o:p><br \/>\n<\/o:p><\/span><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\"><o:p><br \/>\n<\/o:p><\/span><\/p>\n<p style=\"\" class=\"Standard\"><span lang=\"NL-BE\" style=\"font-size: 10pt; font-family: &quot;Segoe UI&quot;,&quot;sans-serif&quot;;\"><o:p>&nbsp;<\/o:p><\/span><\/p>","protected":false},"excerpt":{"rendered":"<p>null<\/p>\n","protected":false},"author":519,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[418],"tags":[4932,4569,5565,5306,4195],"_links":{"self":[{"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/posts\/244"}],"collection":[{"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/users\/519"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/comments?post=244"}],"version-history":[{"count":0,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/posts\/244\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/media?parent=244"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/categories?post=244"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/tags?post=244"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}