What do you want to save?
Add Code snippet
New code examples
-
Other 2022-03-27 16:25:48
Java Super Power java
import javax.swing.JOptionPane;public class SuperPower{public static void main(String[] args) {String power;power = JOptionPane.showInputDialog("What is your super power?");power = power.toUpperCase();JOptionPane.showMessageDialog(null,pow... Add solution -
TypeScript 2022-03-16 23:35:15
transform snake case in camel case typescript
const toCamelCase = (str: string): string =>{ let charsLowerCase = str.toLowerCase().split(''); let camelCaseKey = ''; for (let pos = 0; pos < charsLowerCase.length; pos++) { if (charsLowerCase[pos] === '_') { ... 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 -
Javascript 2022-03-02 22:25:22
sort array of objects in react js
const books = [ {id: 1, name: 'The Lord of the Rings'}, {id: 2, name: 'A Tale of Two Cities'}, {id: 3, name: 'Don Quixote'}, {id: 4, name: 'The Hobbit'} ] compareObjects(object1, object2, key) { const obj1 = object1[key].toUpperCase() const o... Add solution -
Javascript 2022-02-16 19:10:10
quiz javascript example with array
var questions = [ ["What is the capital of England?", "LONDON", "You know, where the queen lives"], ["What is the capital of France?", "PARIS", "Remember the eiffel tower?"], ["What is the c... Add solution -
Javascript 2022-02-09 21:55:08
how to make data title case in discord js
function titleCase(str) { return str .split(' ') .map((word) => word[0].toUpperCase() + word.slice(1).toLowerCase()) .join(' '); } console.log(titleCase("I'm a little tea pot")); // I'm A Little tea Pot Add solution