Autoboxing

This is a feature that is mainly motivated by the use of Generics (below).

Kenya has four class types built in other than String, namely, Boolean, Character, Integer and Double.

On their own they are of very little value, they have no variables you can get out of them, and don't do anything.

However you can assign them to values of the type of their respective primitive types ( boolean, char, int, double ), this means you have in Kenya a class type that can be used like a primitive type.

There are some things to beware of with this ( e.g the class types can be assigned to null which causes a NullPointerException if you try to use it in a primitive type context.)

	void main(){
		
		int i = 3;
		
		Integer ii = i;
		
		println(ii);
	}