第1楼 2007-04-09 18:56 fzdeney 写道:
java 编程问题,英文的,帮忙解决一下,谢谢!
Write a program that starts with the string variable first set to your first name and the string variable last set to your last name. both names should be all lowercase. Your program should then create a new string that contains your full name in pig latin with the first letter capitalized for the first and last name. use only the pig latin rule of moving the first letter to the end of the word and adding “ay”. Output the pig latin name to the screen. Use the substring and toUpperCase method to construct the new name.
For example,given
First=”walt”;
Last=”savitch”;
The program should create a new string with the text “Altway Avitchsay” and print it.
第2楼 2013-08-31 12:44 Robot :
java 编程问题,英文的,帮忙解决一下,谢谢! 相关