Я из России. И английский не мой родной язык :)
Я пытаюсь понять задачу, но я не уверен, что правильно ее понял.
Пожалуйста, поправьте меня.
http://pastie.org/1811424
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
я не понял ... что и где ....