Created
September 14, 2014 12:15
-
-
Save javadovjavad/3f35e3f3bfcdb9ffc83a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DizilerArrays { | |
public static void main(String[] args) { | |
int tamsaylar[] = new int[5]; | |
for (int i = 0; i < tamsaylar.length; i++) { | |
System.out.println("index: " +i+" deyer: "+tamsaylar[i]); | |
} | |
System.out.println("----------"); | |
char karakterler[] = new char[5]; | |
for (int i = 0; i < karakterler.length; i++) { | |
System.out.println("index: " +i+" deyer: "+karakterler[i]); | |
} | |
System.out.println("----------"); | |
String[] stringler = new String[5]; | |
for (int i = 0; i < stringler.length; i++) { | |
System.out.println("index: " +i+" deyer: "+stringler[i]); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment