Voor mezelf: Java

Main

In Eclipse heb je altijd een main nodig om je code te kunnen testen. Zoals bv. deze:

public class testKlasseStudent {
public static void main (StringĀ  args[ ]){
Student a = new Student("Jef Janssen", 1.83, 75);
a.toonAlles();
}
}

Arrays

Grootte van een Array

Geef het aantal elementen in een Array weer.

public int getAantal() {

return tabel.length;
}

Leave a reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.