Back to project page minha-parte-na-conta.
The source code is released under:
Copyright (c) 2015, Daniel Monteiro All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:...
If you think the Android project minha-parte-na-conta listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package br.odb.myshare.datamodel; //from www.j a va2 s .c om import java.text.NumberFormat; public class Item { public String name; public float cost; public Item( String name, float cost ) { this.name = name; this.cost = cost; } @Override public String toString() { NumberFormat format = NumberFormat.getCurrencyInstance(); return name + " - " + format.format( cost ); } public String getName() { return name; } public float getCost() { return cost; } }