experimenting with java code