If it works, why go through the trouble of writing it separately?Some time after you start learning Java.You create classes, ...