This is my code.
Please help me in what's wrong in it.
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) {
int a;int b;
for(a=0;a<6;a++);
System.out.println(s); //write your code here
}
}
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) {
int a;int b;
for(a=0;a<6;a++);
for(b=0;b>0;b++);
System.out.println(s); //write your code here
}
}