class Solution { public String solution(String my_string, int k) { String answer = ""; for(int i = 0; i < k; i++){ answer += my_string; } return answer; } }
class Solution { public String solution(String[] arr) { String answer = ""; for( int i = 0; i < arr.length; i++) { String str1 = arr[i]; answer += str1; } return answer; } }
class Solution { public String solution(String str1, String str2) { String answer = ""; for(int i = 0; i < str1.length(); i++) { char first = str1.charAt(i); char second = str2.charAt(i); answer += String.valueOf(first)+ String.valueOf(second); } return answer; } }
class Solution { public String solution(String my_string, String overwrite_string, int s) { String answer = my_string.substring(0, s)+overwrite_string; if(my_string.length() > answer.length()) { answer += my_string.substring(answer.length()); } return answer; } }
import java.util.Scanner; public class Solution { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); if(n % 2 == 0) { System.out.print(n+" is even"); } else { System.out.print(n+" is odd"); } } }