What do you want to save?
Add Code snippet
New code examples
-
C++ 2022-02-02 22:01:36
distinct char string c++
#include<stdio.h> #include<string.h> // function to return the number of unique // characters in str[] int count_unique_char(char* str) { int hash[128] = { 0 }; int i, c = 0; // reading each character of str[] for (i = 0; i < strlen(... Add solution -
Java 2022-01-26 08:41:53
how to find the ascii value of special character in java
/*ASCII acronym for American Standard Code for Information Interchange. It is a 7-bit character set contains 128 (0 to 127) characters. It represents the numerical value of a character. For example, the ASCII value of A is 65.*/ char a = 65, b = 66, c = 6... Add solution -
Java 2022-01-22 12:35:37
print position of character in alphabet java
import java.util.Scanner; public class FindPositionOfLetterInAlphabet { public static int findPosition(char inputLetter) { // converting input letter in to uniform case. char inputLetterToLowerCase= Character.toLowerCase(inputLetter); // COnver... Add solution -
SQL 2021-11-21 07:18:19
sql string functions
ASCII Returns the equivalent ASCII value for a specific character. CHAR_LENGTH Returns the character length of a string. CHARACTER_ LENGTH Same as CHAR_LENGTH. CONCAT Adds expressions together, with a minimum of 2. CONCAT_WS Adds expressions together, but... Add solution -
Java 2021-11-12 08:52:16
ascii values to display certain characters in java
/*ASCII acronym for American Standard Code for Information Interchange. It is a 7-bit character set contains 128 (0 to 127) characters. It represents the numerical value of a character. For example, the ASCII value of A is 65.*/ char a = 65, b = 66, c = 6... Add solution -
Java 2021-11-07 08:37:08
range of byte data type in java
Data Type Size Stores byte 1 byte whole numbers from -128 to 127 short 2 bytes whole numbers from -32,768 to 32,767 int 4 bytes whole numbers from -2,147,483,648 to 2,147,483,647 long 8 bytes whole numbers from -9,223,372,036,854,775,808 to 9,223,372... Add solution -
Java 2021-10-30 02:41:09
Java program to print alphabets using ascii values
// Java program to print alphabets using ascii values public class PrintAlphabetUsingAscii { public static void main(String[] args) { char ch = 'B'; int ascii = ch; int castAscii = (int) ch; System.out.println("asci... Add solution -
Java 2021-10-10 04:36:08
how to change a character in a string in java with ascii
import java.text.ParseException; import java.util.Arrays; /** * How to convert a String to ASCII bytes in Java * * @author WINDOWS 8 */ public class StringToASCII { public static void main(String args[]) throws ParseException { ... Add solution