It depends. What's the type of `j`?
For example, if `j` is an unsigned int, this will only execute twice. If `j` is a signed int, this will execute forever.
In this case, yes.
Since the return type of your method is a `List<Integer>`, you're probably going to want to return some sort of `List` implementation that contains both `a` and `b`. There are a number of ways to do this as you can see here.
This, essentially.
Additionally, if you've got access to some application that calls the API, you could monitor that in order to get an idea of how it works.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.