What do you want to save?
Add Code snippet
New code examples
-
Other 2021-10-13 11:58:03
Enable Swagger in spring boot through API Gateway
// below is code for API Gateway @Component @Primary @EnableAutoConfiguration public class DocumentationController implements SwaggerResourcesProvider { @Override public List get() {  ... Add solution -
Java 2021-10-11 23:06:04
arraylist remove value in java
// java program on ArrayList remove(int index) method example import java.util.ArrayList; import java.util.List; public class ArrayListRemoveIndex { public static void main(String[] args) { List<Integer> al = new ArrayList<>(); ... Add solution -
TypeScript 2021-09-28 23:06:03
reading multiple objects from file in java
FileInputStream fis = new FileInputStream("outputFile"); ArrayList<Object> objectsList = new ArrayList<>(); boolean cont = true; while (cont) { try (ObjectInputStream input = new ObjectInputStream(fis)) { Object obj = input.rea... Add solution -
Java 2021-09-23 23:25:03
Polymorphisim
Polymorphism means objects behave in different forms. ■ It occurs when parent class/interface calls to child class' objects Sub class can never be the reference type of Super Class Object ■ The reference of an object decides what is accessible. ■ Abstr... Add solution -
Java 2021-09-22 01:18:02
filtering out unique values from a list in java
ArrayList<String> listWithDuplicateValues = new ArrayList<>(); list.add("first"); list.add("first"); list.add("second"); ArrayList uniqueList = (ArrayList) listWithDuplicateValues.stream().distinct().collect(Coll... Add solution
Best helpers
Ranking is empty