What do you want to save?
Add Code snippet
New code examples
-
Other 2022-01-23 07:55:14
how to take multiple char in C
Search Results Featured snippet from the web scanf ( %d , &n); for (i = 0; i < n; i++) { scanf ("%c", &c); printf ("%c\n", c); //printed only after all characters are read. printf ("%d\n", c); //printed only after ... Add solution -
Java 2021-11-08 14:53:33
java remove string from character
// remove last character from string in java public class SubstringDemo { public static void main(String[] args) { String strInput = "Flower Brackets!"; String strOutput = strInput.substring(0, strInput.length() - 1); Sys... Add solution -
Java 2021-11-03 22:59:07
java remove first character
String string = "Hello World"; //Remove first character string.substring(1); //ello World //Remove last character string.substring(0, string.length()-1); //Hello Worl //Remove first and last character string.substring(1, string.length()-1); /... Add solution -
Javascript 2021-10-28 16:11:06
trim comma in javascript
let myString = "string,with,trailing,comma,"; // remove the last character of the string (regardless of what it is) myString.substr(0, myString.length-1) // remove only a comma if it appears at the end of the string myString.replace(/,$/, &quo... Add solution