Ivan,
I suggest to create a class Price with all the fields you need (Net,Gross,VAT, discount, etc)
And make the service return the instance of the class.
In Java it’s not possible to return multiple values from a function. Nevertheless, as Alex said, you can either use a Class or a Map / List to return different values. Classes make most sense.
Right, it shows three files: “Service.groovy”, “TotalAmount.groovy” and “main.groovy”. The main executes the service to get back an instance of TotalAmount. The example is in groovy but you can use the exact same code to implement it in java.