I don't have that listed as a homework requirement. We are only supposed to do the homeworks listed at the top with dates. I know that many of the intermediate labs have them but they are not required.
On May 21, 2:08 pm, Erdem Bozbağ <erdemboz...@su.sabanciuniv.edu> wrote: > I couldnt manage getAsString() method whatever I tried, did anyone make it? > (I created an Amount Class and amount is double in it) > @Override > public Object getAsObject(FacesContext context, UIComponent > component, String value) > { > > StringBuilder builder = new StringBuilder(value); > int i = 0; > while (i < builder.length()) { > char ch = builder.charAt(i); > if (Character.isDigit(ch)) > i++; > else > builder.deleteCharAt(i); > } > Amount myAmount = new > Amount(Double.parseDouble(builder.toString())); > return myAmount; > } > > @Override > public String getAsString(FacesContext context, UIComponent > component, Object value) { > return value.toString(); > } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en -~----------~----~----~----~------~----~------~--~---