What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-10 05:41:02
enum multiple values
public enum Language{ English("english", "eng", "en", "en_GB", "en_US"), German("german", "de", "ge"), Croatian("croatian", "hr", "cro&quo... Add solution -
Other 2021-09-10 05:03:01
linked list head and tail
import java.util.Iterator; // Custom Linked List class using Generics class List<T> implements Iterable<T> { Node<T> head, tail; // add new Element at tail of the linked list in O(1) public void add(T data) { Node<T>... Add solution -
Java 2021-09-04 04:53:02
javafx combobox cell
@FXML AnchorPane root; @FXML ComboBox<UserDTO> cmbUsers; List<UserDTO> users; public class GateInController implements Initializable { @Override public void initialize(URL location, ResourceBundle resources) { users = UserService.ge... Add solution -
Java 2021-09-01 14:19:02
reverse linked list in java to get both head and tail
/* public class ListNode { public int val; public ListNode next; public ListNode(int x) { val = x; next = null; } } */ public static ListNode[] reverse_linked_list(ListNode head) { ListNode prev = null; ListNode current = hea... Add solution -
Javascript 2021-08-31 13:06:01
c# json deserialize list of objects
//using the holy NEWTON! (you can find it as a nuget package) using Newtonsoft.Json; //get some storage for your required type List<YourType> OutputList; //usings clean up //Load some sort of stream (file or memory) using (Stream Stream = new File... Add solution -
C# 2021-08-29 10:18:02
new TextractDocument(results)
public List< GetDocumentAnalysisResponse > GetJobResults(string jobId) { var result = new List< GetDocumentAnalysisResponse >(); var response = this.textract. GetDocumentAnalysisAsync(new GetDocumentAnalysisRequest { JobId = jobId ... Add solution