用英语介绍自己。 大家好,我的名字叫xxx,我来自xxxx学校。 英文翻译:今天我将给你介绍一首歌,歌曲的名字是XXXX

作者&投稿:移冒 (若有异议请与网页底部的电邮联系)
Hello, my name is xxx, i‘m xx years old. I come from xxxx school. My hobbies are reading, shuttlecock, and fond of playing computer games. My favorite animal is the rabbit, the most popular color is white and purple, the biggest love of food is ice cream. Nice to meet you.

Hello, my name is XXX, already have xx years old. I'm from XXXX school. My hobbies are reading, playing shuttlecock, fond of playing computer games. My favorite animal is a rabbit, favorite color is white and Dan zi, maximum love food is ice cream. Nice to meet you.

Hello, my name is xxx, xx years old already. I come from xxxx school. My hobbies are reading, shuttlecock, and fond of playing computer games. My favorite animal is the rabbit, the most popular color is white and purple, the biggest love of food is ice cream. Nice to meet you.

输入一个字符串,格式如:我的名字叫:XXXX,要求使用字符串的方法提取出名字。~

import java.util.Scanner;
public class test {
private static String str;
public static void main(String[] args) {
System.out.print("请输入字符串以(我的名字是:XX这种格式开头):");
//输入数字会出现异常,所以加上try..catch...
try {
str = new Scanner(System.in).next();
while (!str.substring(0,6).equals("我的名字是:")) {
if (str.substring(0,6).equals("我的名字是:")) {
break;
}
System.out.println(" ");
System.out.print("你输入的格式不正确,请重新输入!");
System.out.println(" ");
System.out.print("请输入字符串以(我的名字是:XX这种格式开头):");
str = new Scanner(System.in).next();
}
System.out.println("你输入的名字是"+str.substring(5,str.length()));
//出现异常后提示重新输入
} catch (Exception e) {
while (!str.substring(0,6).equals("我的名字是:")) {
if (str.substring(0,6).equals("我的名字是:")) {
break;
}
System.out.println(" ");
System.out.print("你输入的格式不正确,请重新输入!");
System.out.println(" ");
System.out.print("请输入字符串以(我的名字是:XX这种格式开头):");
str = new Scanner(System.in).next();
}
}
}
}

Today I will introduce a song to you, and the name of the song is......