10
Tugas
Java Collections,  level 10pelajaran 4
Terkunci
POST, not GET
Fix the errors in the sendPost method so that it sends a POST request with the passed arguments. Note: the main method isn't tested, but to make the program work correctly locally, you can: go to any website for creating a RequestBin (for example, https://requestbin.com/), create your own RequestBin there, and use it in main.
20
Tugas
Java Collections,  level 10pelajaran 4
Terkunci
Again, POST, not GET
Fix the errors in the sendPost method so that it sends a POST request with the passed arguments. Note: the main method isn't tested, but to make the program work correctly locally, you can: go to any website for creating a RequestBin (for example, https://requestbin.com/), create your own RequestBin there, and use it in main.
10
Tugas
Java Collections,  level 10pelajaran 4
Terkunci
Error codes
There are errors in the main method. Fix them. Try to make as few changes as possible. The program must display the JSON document at url.
10
Tugas
Java Collections,  level 10pelajaran 4
Terkunci
URL properties
The decodeURLString method must take a URL as a String and display its properties on the screen: - protocol; - authority; - file; - host; - path; - port; - default port; - query; - ref.