营销型网站建设0469z,wordpress html5代码包,创造一个软件需要多少钱,wordpress主题flarum实际上我正试图用用户给出的句子中的数字替换为单词.本案例日期格式;例如#xff1a;我的生日是在16/6/2000,我是java的新手 – 成为—我的生日是七月十六日,我是java的新手这是代码#xff1a;Scanner reader new Scanner(System.in);System.out.println(Ent…实际上我正试图用用户给出的句子中的数字替换为单词.本案例日期格式;例如我的生日是在16/6/2000,我是java的新手 – 成为—我的生日是七月十六日,我是java的新手这是代码Scanner reader new Scanner(System.in);System.out.println(Enter any numbers: );String nom reader.nextLine(); // get input from user//checking contains that has / or notif(nom.contains(/)){String parts[] nom.split([/]);String part1 parts[0]; //data before / will be stored in the first arrayString day[] part1.split(\\s);// split between spaceString get_day day[day.length -1];// get last arrayString get_month parts[1]; //data in the between of / will be stored in the second arrayString part3 parts[2]; // data after / will be stored in the third arrayString year[] part3.split(\\s);// split between spaceString get_year year[0];// get first arrayString s NumberConvert.convert(Integer.parseInt(get_day)) NumberConvert.convert(Integer.parseInt(get_month)) NumberConvert.convert(Integer.parseInt(get_year));String con nom.replaceAll([0-9].*/[0-9].*/[0-].*, s); // replace number to wordSystem.out.println(con); // print the data already converted} else {....}但我得到的结果是My birthday is on sixteenth july two thousand//and Im newbie to the java is disappear [How to solve it]//如何解决它.实际上我想获得“/”斜杠之前和之后的值并将其转换为单词并将其替换为来自用户的原始输入.我试过的是String con nom.replaceAll([0-9].*/[0-9].*/[0-9999], s); // a bit change [0-9].* to [0-9999]但输出变成这样My birthday is on sixteenth july two thousand 000 and Im newbie to the java//after two thousand index 000 is appearing