message = message + "Programming is used/can be used in ... for...\n";
JOptionPane.showMessageDialog(null, message);
}
} Note: It is very important that you write things exactly as given. E.g. “myself” is not the same as “Myself”; do not put spaces where spaces are not found in the examples.
4.4: Now modify program from the previous exercise in this tutorial and personalise it by stating what your hobbies or favourite pastimes and if you have seen or have any ideas on how to use programming in your hobby/pastime. Answers are not checked for correctness :)
4.5: Add code comments to your program and identify and explain the following terms in your own words: Class, method, variable and a code block.