程序运行网站:
https://www.jyshare.com/compile/10/
课堂任务/课后作业:
1、阅读教材/课讲,整理笔记,弄懂当日不懂知识点;
2、
Write a Java program named NameProcessor that completes the following tasks in the main method:
Step 1: Create a string fullName with the value "Alice Chen".
Step 2: Use the length() method to get the length of fullName.
Step 3: Use the indexOf() method to find the position of the space in fullName.
Step 4: Use the substring() method to extract the first name (from index 0 to the space position); Use the substring() method to extract the last name (from space position + 1 to the end).
Step 5: Output the results in the following format:
Expected Output:

请提交代码截图至问卷星https://v.wjx.cn/vm/Pu9n5Rl.aspx#