16.07.2015 Views

Java Temel Bilgiler (Türkçe Kitap-Pdf)

Java Temel Bilgiler (Türkçe Kitap-Pdf)

Java Temel Bilgiler (Türkçe Kitap-Pdf)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

System.out.println("append Metodu:"+s1.append('C'));//charSystem.out.println("append Metodu:"+s1.append(m1));//char[]System.out.println("append Metodu:"+s1.append(m1,1,3));System.out.println("append Metodu:"+s1.append(1245.456d));//doubleSystem.out.println("append Metodu:"+s1.append(554.456f));//floatSystem.out.println("append Metodu:"+s1.append(250));//intSystem.out.println("append Metodu:"+s1.append(1500l));//longSystem.out.println("append Metodu:"+s1.append("Kocaeli"));//StringSystem.out.println("appendCodePoint Metodu:"+s1.appendCodePoint(65));System.out.println("capacity Metodu:"+s4.capacity());//16 + 4=20System.out.println("charAt Metodu:"+s1.charAt(2));//'v'System.out.println("codePointAt Metodu:"+s1.codePointAt(1));//a-->97System.out.println("delete Metodu:"+s2.delete(1,4));System.out.println("deleteCharAt Metodu:"+s2.deleteCharAt(3));s3.ensureCapacity(20);System.out.println("s3 kapasite:"+s3.capacity());//16 + 20=36s1.getChars(0,4,m1,0);System.out.print("Yeni m1 degiskeni=");for (char d1:m1){System.out.print(d1);}System.out.println();System.out.println("indexOf Metodu:"+s1.indexOf("ava"));System.out.println("indexOf Metodu:"+s1.indexOf("ava",2));System.out.println("insert Metodu:"+s4.insert(1,true));//booleanSystem.out.println("insert Metodu:"+s4.insert(1,'T'));//charSystem.out.println("insert Metodu:"+s4.insert(1,m1));//char[]System.out.println("insert Metodu:"+s4.insert(1,m1,2,3));//char[]System.out.println("insert Metodu:"+s4.insert(1,1245.456d));//doubleSystem.out.println("insert Metodu:"+s4.insert(10,54.456f));//floatSystem.out.println("insert Metodu:"+s4.insert(17,250));//intSystem.out.println("insert Metodu:"+s4.insert(21,1500l));//longSystem.out.println("insert Metodu:"+s4.insert(5,"Eren"));//StringSystem.out.println("lastIndexOf Metodu:"+s5.lastIndexOf("ta"));System.out.println("lastIndexOf Metodu:"+s5.lastIndexOf("ta",3));System.out.println("length Metodu:"+s4.length());System.out.println("replace Metodu:"+s8.replace(1,2,"se"));System.out.println("replace Metodu:"+s8.replace(1,5,"yf"));System.out.println("reverse Metodu:"+s6.reverse());s6.setCharAt(1,'Y');System.out.println("s6 :"+s6+" Uzunlugu:"+s6.length());s6.setLength(40);System.out.println("s6 yeni uzunlugu:"+s6.length());System.out.println("substring Metodu:"+s6.substring(18));System.out.println("substring Metodu:"+s6.substring(20,22));}//main}//ClassSonuç:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!