Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Task_1 {
- public static void main(String[] args) {
- String[] months = new String[]{"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"};
- for (String element: months) {
- if (element.equals("June")) {
- System.out.print(element);
- System.out.println(", this is the best month by the way");
- } else {
- System.out.println(element);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement