Commit 40fdd6a7 authored by Attila Bódis's avatar Attila Bódis 👻

Upload New File

parent 4834a79c
package eu.greyson.JavaTestRefactor;
import lombok.AllArgsConstructor;
import lombok.Data;
import java.math.BigDecimal;
@Data
@AllArgsConstructor
public class Payment {
private String currency;
private BigDecimal amount;
public Payment(String currency, String amount) {
this.currency = currency;
this.amount = new BigDecimal(amount);
}
@Override
public String toString() {
return currency + " " + amount;
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment