关于java的问题,=急!

来源:百度知道 编辑:UC知道 时间:2024/07/03 02:53:26
这些问题咋做,不知道的单词麻烦查一下 谢谢 这是编成语言吧
1:Create a program called TextLCD that contains a method called lcd.
int lcd (int number1, int number2)
The lcd method returns the least common divisor of number1 and number2

2:Create a program called TextGCM that contains a method called gcm.
int gcm (int number1, int number2)
The gcm method returns the greatest common multiple of number1 and number2.

3:Create a program called TestCase that contains three methods called isUpper, isLower,and isMixed.
boolean isLower (string str)
boolean isUpper (string str)
boolean isMixed (string str)
The isUpper method returns true if all the alphabetic characters in the string are in upper case. The isLower method returns true if all the alphabetic characters in the string are in lower case. The isMixed method returns true only if there are alphabetic characters in the string that are bo

1:Create a program called TextLCD that contains a method called lcd.
int lcd (int number1, int number2)
The lcd method returns the least common divisor of number1 and number2

创建工程TextLCD包含一个lcd方法:int lcd (int number1, int number2)
lcd方法返回number1和number2的最小公约数(the least common divisor——最小公约数是不是搞错了?是最大公约数才对,求最小公约数没什么意思吧?)

2:Create a program called TextGCM that contains a method called gcm.
int gcm (int number1, int number2)
The gcm method returns the greatest common multiple of number1 and number2。
这个就是求number1和number2(the greatest common multiple )最大公倍数!两个数有最大公倍数嘛??题目有问题吧,应该是(the least common multiple )最小公倍数吧!

3. boolean isLower (string str)
字符串str中的字符全部是小写返回true,否则返回false
boolean isUpper (string str)
字符串str中的字符全部是大写返回true,否则返回false
boolean isMixed (string str)
字符串str中有大写也有小写返回true,否则返回false
4. 对于输入的全名字符串或三个字符简写的month转换成对应的月份:
比如