Find an updated user

Report a typo

In a server database, there is a table that contains all the user account data:

id name amount
1 Tim 300
2 Jim 2100
3 Mari 650

What will be the maximum amount of money in the database after executing the following code:

String url = "https://example.bank.com/users/{id}";

Map<String, String> params = new HashMap<>();

params.put("id", "1");

User user = restTemplate.getForObject(url, User.class, params);

user.setAmount(user.getAmount() + 10000);

restTemplate.put(url, user, params);
Enter a number
___

Create a free account to access the full topic