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"); } } }
import java.util.Scanner; public class Solution { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String a = sc.next(); int b = a.length(); for(int i = 0; i
import java.util.Scanner; public class Solution { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String a = sc.next(); String b = sc.next(); System.out.println(a+b); } }