What do you want to save?
Add Code snippet
New code examples
-
Java 2021-10-01 20:34:07
Java program to check palindrome string using recursion
import java.util.Scanner; public class RecursivePalindromeJava { // to check if string is palindrome using recursion public static boolean checkPalindrome(String str) { if(str.length() == 0 || str.length() == 1) return true; ... Add solution -
Javascript 2021-10-01 00:37:03
how to capitalize first letter 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 -
Other 2021-09-30 18:21:02
iterate each char in string in java
class Main { public static void main(String[] args) { // create a string String name = "Programiz"; System.out.println("Characters in " + name + " are:"); // loop through each element for(int i = 0; i... Add solution -
Java 2021-09-30 14:00:02
Java program to check palindrome number using recursion
import java.util.Scanner; public class RecursivePalindromeJava { // to check if string is palindrome using recursion public static boolean checkPalindrome(String str) { if(str.length() == 0 || str.length() == 1) return true; ... Add solution -
Javascript 2021-09-30 08:41:03
how to sepaarte text in object javascript
let data = 'Child 1 First Name: Ali\nChild 1 Gender: Female\nChild 1 Hair Color: Blonde\nChild 1 Hair Style: Wavy\nChild 1 Skin Tone: Tan\nChild 2 First Name: Morgan \nChild 2 Gender: Female\nChild 2 Hair Color: Brown\nChild 2 Hair Style: Ponytail\nChild ... Add solution -
Other 2021-09-30 01:19:03
Write a program to input a word from the user and remove the duplicate characters present in it.
// Java program to remove duplicate/repeated characters from a string www.getprogramcode.com import java.util.*; class RemoveDuplicate { public static void main(String args[]) { String s,ans=""; char ch ; int l,i=0; Scanner sc=new S... Add solution -
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