What do you want to save?
Add Code snippet
New code examples
-
Java 2022-03-18 03:30:02
remove item from arraylist in java
// Java.util.ArrayList.remove(Object) method example import java.util.ArrayList; import java.util.List; public class ArrayListRemoveObjectMethod { public static void main(String[] args) { List<Integer> al = new ArrayList<>(); ... Add solution -
Java 2022-03-17 23:00:04
how to pass path parameter in url in spring rest
@RequestMapping(method = RequestMethod.GET, value = "/custom") public String controllerMethod(@RequestParam Map<String, String> customQuery) { System.out.println("customQuery = brand " + customQuery.containsKey(&... Add solution -
Java 2022-03-17 20:20:04
java add a list to a list
package com.journaldev.examples; import java.util.ArrayList; import java.util.List; public class ListAddExamples { public static void main(String[] args) { List<String> vowels = new ArrayList<>(); vowels.add("A"); // [A] ... Add solution -
Java 2022-03-17 15:10:39
usaco why did the cow cross the road iii silver java
//sample input 3 3 3 2 2 2 3 3 3 3 2 3 3 2 3 3 3 2 2 2 3 //CODE (2021/1/18) YY/MM/DD import java.util.*; import java.io.*; public class Main { static field[][] farm; public static void main(String[] args) throws Exception { Scanner sc = new S... Add solution -
Other 2022-03-17 10:10:41
queue with linked list in c
/* * Program : Queue using linked list * Language : C */ #include<stdio.h> #include<stdlib.h> struct node { int data; struct node *next; }; struct node *front = NULL, *rear = NULL; void enqueue(int val) { struct node *newNo... Add solution -
Java 2022-03-17 02:05:01
java accept 2 integers from the user, and using a method add these numbers and print the result
static void M1(int num1, int num2) { int sum = num1 + num2; System.out.println("sum of " + num1 + " and " + num2+ " = " + sum); } public static void main(String[] args) { // using Methods... Add solution
Best helpers
Ranking is empty