What do you want to save?
Add Code snippet
New code examples
-
Java 2021-09-29 20:49:02
Reverse a string in java word by word
// Reverse a string in java word by word import java.util.Scanner; public class ReverseStringWordByWord { public static void main(String[] args) { String strWord = ""; Scanner sc = new Scanner(System.in); System.out.pri... Add solution -
Java 2021-09-28 20:29:05
generta epassword java
import java.util.Random; public class PasswordGenerator { public static String generateRandomPassword(int len) { String chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghi" +"jklmnopqrstuvwxyz!@#$%&"; Random rnd ... Add solution -
Javascript 2021-09-28 11:05:04
how to make typewriter effect repeat
/* Creating a Typing Effect ----------------------------- 1) Add HTML: */ <p id="demo"></p> <button onclick="typeWriter()">Click me</button> /* 2) Add JavaScript: */ var i = 0; var txt = 'Lorem ipsum typing e... Add solution -
Other 2021-09-27 20:24:04
what is palindrome
function isPalindrome(sometext) { var replace = /[.,'!?\- \"]/g; //regex for what chars to ignore when determining if palindrome var text = sometext.replace(replace, '').toUpperCase(); //remove toUpperCase() for case-sensitive for (var i = 0; i... Add solution -
Javascript 2021-09-27 12:03:03
how to capitalize first letter of word in javascript
//capitalize only the first letter of the string. function capitalizeFirstLetter(string) { return string.charAt(0).toUpperCase() + string.slice(1); } //capitalize all words of a string. function capitalizeWords(string) { return string.repl... Add solution
Best helpers
Ranking is empty