Search This Blog

Total Pageviews

Java Script GET request Sample Code

  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.error(error));

ImmutableList Example

private ImmutableList<String> getServerProps(){
      ImmutableList.Builder<String> serverProps = ImmutableList.builder();
      serverProps.add(String.format("Azure", "Yes"));
      serverProps.add(String.format("AWS", "Yes"));
      serverProps.add("DisasterRecovery", "Yes");
return serverProps ;

Java Shutdown Hook

Runtime.getRuntime().addShutdownHook(new Thread(() -> {
            System.out.println("Shutdown started");
             //  Close all the resource locks
            System.out.println("Shutdown successful");

gradlew : The term 'gradlew' is not recognized as the name of a cmdlet, function, script file , or operable program

The command gradlew was not found, but does exist in the current location.  Windows PowerShell does not load commands from the current location by default.  Try '.\gradlew'

Type Matching Code Completion in IntelliJ

Invoke (Ctrl + Shift + Space) twice when collection type is expected will search for arrays with the same component type.

How to install Windows Subsystem for Linux?

- Open Powershell in Admin mode and run wsl --install