Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
1
@Module public class NetworkModule { // @Provides tell Dagger how to create instances of the type that this function // returns (i.e. LoginRetrofitService). // Function parameters are the dependencies of this type. @Provides public LoginRetrofitService provideLoginRetrofitService() { // Whenever Dagger needs to provide an instance of type LoginRetrofitService, // this code (the one inside the @Provides method) is run. Retrofit retrofit = new Retrofit.Builder() .baseUrl("https://example.com") .build() .create(LoginService.class); } }
run
|
edit
|
history
|
help
0
assign
merge sort by java
1(E)
Minimum Vertices to Traverse Directed Graph
pattern2
Number to Words (Accenture)
moneda
1a
combination sum (variation)
// Java Coding Challenge - 09: Find out duplicate numbers using HashSet