What do you want to save?
Add Code snippet
New code examples
-
Java 2022-03-02 21:55:06
get certain character from string java
String words = "Hi There"; //creating a string var named 'words' char index = words.charAt(0); /* setting a variable 'index' to letter '0' of variable 'words'. In this case, index = 'H'.*/ System.out.println(index); //print var 'index' which wil... Add solution -
Javascript 2021-11-15 20:03:49
capitlize strung js
With performance metrics... // 10,889,187 operations/sec function capitalizeFirstLetter(string) { return string[0].toUpperCase() + string.slice(1); } // 10,875,535 operations/sec function capitalizeFirstLetter(string) { return string.charAt(0).t... Add solution -
Javascript 2021-11-15 20:03:37
capitlize strung js
With performance metrics... // 10,889,187 operations/sec function capitalizeFirstLetter(string) { return string[0].toUpperCase() + string.slice(1); } // 10,875,535 operations/sec function capitalizeFirstLetter(string) { return string.charAt(0).t... Add solution -
Java 2021-10-19 06:05:06
string char at java
String words = "Hi There"; //creating a string var named 'words' char index = words.charAt(0); /* setting a variable 'index' to letter '0' of variable 'words'. In this case, index = 'H'.*/ System.out.println(index); //print var 'index' which wil... Add solution -
Java 2021-10-08 17:49:12
hangman java game
public class Hangman { public static void main(String[] args) { Scanner keyboard = new Scanner(System.in); int noOfGuesses =0,lettersC... 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