What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-22 09:13:10
Replace With Alphabet Position
function alphabetPosition(text) { var result = ""; for (var i = 0; i < text.length; i++) { var code = text.toUpperCase().charCodeAt(i) if (code > 64 && code < 91) result += (code - 64) + " "; } return ... Add solution -
Other 2021-10-19 16:54:06
make first letter uppercase
//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 -
Java 2021-10-16 17:20:05
jdbc where like parameter
private List getTopics (Connection conn, String searchCriteria) throws SQLException { List blogs = new LinkedList(); String query = "SELECT id, text FROM blogs WHERE UPPER(text) LIKE ?"; try { // going to do a search using "uppe... Add solution -
Other 2021-10-15 06:21:07
string manipulation
String manipulations: charAt(indexNumber): it returns the char at the given index length(): returns the total number of characters as int length is ALWAYS one unit above the maximum index number maxIndex: length()-1; concat(Value): Concatenation, conc... Add solution -
Javascript 2021-10-13 20:28:03
js paste event
const target = document.querySelector('div.target'); target.addEventListener('paste', (event) => { let paste = (event.clipboardData || window.clipboardData).getData('text'); paste = paste.toUpperCase(); const selection = window.getSelect... Add solution