What do you want to save?
Add Code snippet
New code examples
-
Java 2022-03-18 01:20:02
how to make abstract method in java
Sometimes we may come across a situation where we cannot provide implementation to all the methods in a class. We want to leave the implementation to a class that extends it. In such case we declare a class as abstract.To make a class abstract we use ke... Add solution -
Java 2022-03-11 09:20:22
spring tcp inbound-outbound channel adapter example
@Configuration() @EnableIntegration @IntegrationComponentScan public class ServerConfiguration implements ApplicationListener<TcpConnectionEvent> { private final int port = SocketUtils.findAvailableServerSocket(5000); @MessagingGateway(defaultRequ... Add solution -
TypeScript 2022-03-06 00:05:30
typescript static class equivalent
//Example of Typescript static class equivalent export abstract class Tools { public static truncate(str, length) { var ending = '...'; if (str.length > length) { return str.substring(0, length - ending.length) + ending; } el... Add solution -
Python 2022-02-17 12:05:21
python split a string of tuples into a list of lists
# Basic syntax: import ast [list(elem) for elem in ast.literal_eval(your_string)] # Example usage: # Say you want to convert a string like: '(0,0,0), (0,0,1), (1,1,0)' # or like '((0,0,0), (0,0,1), (1,1,0))' # to a list of lists like: [[0, 0, 0], [0, 0, ... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5