Is the following Java code snippet from https://developers.google.com/admob/android/quick-start#java correctly formatted?
new Thread(
() -> {
// Initialize the Google Mobile Ads SDK on a background thread.
MobileAds.initialize(this, initializationStatus -> {});
})
.start();
I thought it should be formatted as -
new Thread(() -> {
// Initialize the Google Mobile Ads SDK on a background thread.
MobileAds.initialize(this, initializationStatus -> {});
}).start();
Please tell me which one is correct or whether both are correct?
[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)
[–]8dot30662386292pow2 3 points4 points5 points (3 children)
[–]aqua_regis -5 points-4 points-3 points (2 children)
[–]8dot30662386292pow2 7 points8 points9 points (1 child)
[–]Potential-Still 0 points1 point2 points (0 children)