Am not getting given strings each 4 times
last condition not applying my code
this is my code
public class Solution {
public static void main(String[] args) {
print("Java is easy to learn!");
print("Java is object-oriented!");
print("Java is platform-independent!");
}
public static void print(String s) {
System.out.println("Java is easy to learn!");
System.out.println("Java is easy to learn!");
System.out.println("Java is easy to learn!"); System.out.println("Java is easy to learn!");
System.out.println("Java is object-oriented!");
System.out.println("Java is object-oriented!");
System.out.println("Java is object-oriented!");
System.out.println("Java is platform-independent!");
System.out.println("Java is platform-independent!");
System.out.println("Java is platform-independent!");
}
}
package com.codegym.task.task02.task0201;
/*
Implement the print method
*/
public class Solution {
public static void main(String[] args) {
print("Java is easy to learn!");
print("Java is object-oriented!");
print("Java is platform-independent!");
}
public static void print(String s) {
System.out.println("Java is easy to learn!");
System.out.println("Java is easy to learn!");
System.out.println("Java is easy to learn!"); System.out.println("Java is easy to learn!");
System.out.println("Java is object-oriented!");
System.out.println("Java is object-oriented!");
System.out.println("Java is object-oriented!");
System.out.println("Java is platform-independent!");
System.out.println("Java is platform-independent!");
System.out.println("Java is platform-independent!");
}
}