I failed. I tried much but I can not do it as I don't know how to call somtehing in main method and .. please show me how to do it. I can not find any similar example in the material. There was a similar task before this one that I failed it as well. Thanks
this is my solution:
package com.codegym.task.task01.task0127;
/*
Square of a number
*/
public class Solution {
public static void main(String[] args) {
//write your code here
int a = 5;
System.out.print(a*a);
}
public static int sqr(int a) {
return a * a;
}
}
package com.codegym.task.task01.task0127;
/*
Square of a number
*/
public class Solution {
public static void main(String[] args) {
//write your code here
int a = 5;
System.out.print(a*a);
}
public static int sqr(int a) {
return a * a;
}
}