package retail;

public class RetailHelper
{
	
	/**Returns cash string formatted X.XX for a given price in cents*/
	public static String getCashString(int amount)
	{	System.out.println(amount);
		int cents = amount % 100;
		int dollars = amount - cents;
		dollars /= 100;
		return dollars + "." + ((cents < 10 ) ? "0" : "") + cents;
	}
}

@@ -341,12 +341,270 @@
 ts;%0D%0A%09%7D%0D
+%0A%0D%0A%09/**Returns price in cents from given cash string formatted X.XX*/%0D%0A%09public static int getCentsFromCashString(String cashString)%0D%0A%09%7B%0D%0A%09%09String%5B%5D parts = cashString.split(%22.%22);%0D%0A%09%09return (Integer.parseInt(parts%5B0%5D) * 100) + Integer.parseInt(parts%5B1%5D);%0D%0A%09%7D%0D
 %0A%7D%0D%0A

Add getCentsFromCashString