/*
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */

package com.mpalourdio.html5;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

import java.util.Arrays;

@SpringBootApplication
public class SpringBootAngularHTML5Application {

    public static void main(final String ...args) {
        final ApplicationContext ctx = SpringApplication.run(SpringBootAngularHTML5Application.class, args);
        final String[] beanNames = ctx.getBeanDefinitionNames();
        Arrays.sort(beanNames);
        Arrays.stream(beanNames).forEach(System.out::println);
    }
}

@@ -830,12 +830,12 @@
 ring
- 
 ...
+ 
 args
@@ -1012,16 +1012,17 @@
 ames();%0A
+%0A
         
@@ -1029,19 +1029,21 @@
 Arrays.s
-ort
+tream
 (beanNam
@@ -1045,26 +1045,31 @@
 anNames)
-;
 %0A
+      
         
 Arrays.s
@@ -1064,32 +1064,36 @@
     
-Arrays.stream(beanNames)
+  .sorted()%0A                
 .for

Use streams