added array-example.cpp
added ArrayExample.java
added dynamic-array-example.cpp
added DynamicArrayExample.java