Fare丶梦


私信TA

用户名:126913199

访问量:31080

签 名:

等  级
排  名 134
经  验 4890
参赛次数 0
文章发表 50
年  龄 22
在职情况 学生
学  校
专  业

  自我简介:

解题思路:





注意事项:





参考代码:

import java.util.Scanner;


public class Main {

        public static void Ascll(String str,String str1){

                String[] array = str.split(" ");

                String[] array1 = str1.split(" ");

                for(int i=0;i<array.length;i++){

                        int[] arr = new int[array.length]; 

                        char[] arr1 = new char[array.length];

                        arr[i] = Integer.valueOf(array[i]);

                        arr1[i] = (char)arr[i];

                        System.out.print(arr1[i]);

                }

                for(int i=0;i<array1.length;i++){

                        int[] arr = new int[array1.length]; 

                        char[] arr1 = new char[array1.length];

                        arr[i] = Integer.valueOf(array1[i]);

                        arr1[i] = (char)arr[i];

                        System.out.print(arr1[i]);

                }

        }

        public static void main(String[] arg){

                Scanner sc = new Scanner(System.in);

                String str = sc.nextLine();

                String str1 = sc.nextLine();

                Ascll(str,str1);

        }

}


 

0.0分

0 人评分

  评论区