Java Main Program Input And Output