class Solution { public int[] solution(String[] strlist) { int[] answer = new int [strlist.length]; for(int i = 0; i < strlist.length; i++) { answer[i] = strlist[i].length(); } return answer; } }
class Solution { public double solution(int[] numbers) { double answer = 0; for(int i = 0; i < numbers.length; i++) { answer += numbers[i]; } return answer / numbers.length; } }
class Solution { public int solution(int n) { int answer = 0; for(int i = 1; i
class Solution { public int solution(int angle) { int answer = 0; if(angle > 0 && angle 90 && angle < 180) { answer = 3; } else if ( angle == 180) { answer = 4; } return answer; } }
class Solution { public int solution(int num1, int num2) { return num1 + num2; } } class Solution { public int solution(int num1, int num2) { return num1 - num2; } } class Solution { public int solution(int num1, int num2) { return num1 * num2; } } class Solution { public int solution(int num1, int num2) { double answer = ((double) num1 / num2) * 1000; return (int) answer; } }