我来自俄罗斯。而且英语不是我的母语 :) 我试图理解这项任务,但我不能确保我正确理解它。
请纠正我。
class DE_Roman
{
private String romanValue;
private int intValue;
public void romanToInt(Strin romanValue)
{
this.romanValue = romanValue;
int result;
// ...
// convert to int and save result in result variable
this.intValue = result;
}
public void intToRoman(int intValue)
{
this.intValue = intValue;
String result = "";
// ...
// convert to int and save result in result variable
this.romanValue = result;
}
public void println()
{
System.out.println( this.toString() );
}
public String toString()
{
return romanValue + " " + intValue;
}
}
这是对的吗????
关于getInput
我不明白......什么和在哪里......