This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I try to define a format for an object (an object I have created). I know I have to implement these 3 methods 1) format(Object obj, StringBuffer toAppendTo, FieldPosition pos) 2) formatToCharacterIterator(Object obj) 3) parseObject(String source, ParsePosition pos).
My problem is I don't know what to put in these methods.
For exemple my object has 3 fields. Two of them are string. I would like when format is call on this object display the two String.