Created by Ann-Kathrine Buchmakowsky
over 4 years ago
|
||
eindimensional: Datentyp[ ] = meinArray; meinArray = new Datentyp[int];
zweidimensional: Datentyp[ ][ ] = meinArray; meinArray = new Datentyp[rows] [columns] ;
Eindimensional: for (int i = 0; i < meinArray.length(); i++){ System.out.println(meinArray[i].getContent(); ) }
Zweidimensional: for (int i = 0; i < meinArray[i][0].getRowCount(); i++){ for (int j = 0; j < meinArray[0][j].getColumnCount(); j++) { System.out.println(meinArray[i][j].getContent() } }
length() indexof (String str) substring (int beginIndex) substring (int beginIndex, int endIndex) charAt(int index) equals (Object anobject) compareTo (String anotherstring) startsWith(String prefix)
Want to create your own Notes for free with GoConqr? Learn more.