java /t code example

Example 1: java generics type

Java Generic Type Naming convention helps us understanding code easily and having a naming convention is one of the best practices of Java programming language. So generics also comes with its own naming conventions. Usually, type parameter names are single, uppercase letters to make it easily distinguishable from java variables. The most commonly used type parameter names are:

EElement (used extensively by the Java Collections Framework, for example ArrayList, Set etc.)
KKey (Used in Map)
NNumber
TType
VValue (Used in Map)
S,U,V etc.2nd, 3rd, 4th types

Example 2: java \t

for (int k = 0; k < 7; k++){
        System.out.println("Vak/project:\t" + vakNamen[x] + "\t\t"
        + "Cijfer: " + vakCijfers[x] + "\t" + "Behaalde punten: "
        + vakPunten[x]);
        x++;
    }

Tags:

Java Example