What do you want to save?
Add Code snippet
New code examples
-
C# 2022-03-14 14:40:26
c# number to byte array
public byte[] ConvertNumToByte(int Number) { byte[] ByteArray = new byte[32]; string BinString = Convert.ToString(Number, 2); char[] BinCharArray = BinString.ToCharArray(); try { System.Array.Reverse(BinCharArray); if (BinCharArray != nu... Add solution -
Javascript 2022-03-07 23:10:36
tochararray in javascript
// there is not toCharArray() function in javascript .. // if you want to split string into char array .. then do this method.. let name="hello"; let charArray=name.split(''); // this split string into char .. console.log(charArray); // outpu... Add solution -
Java 2022-02-13 15:45:32
random string generator java
public static String getRandomString(int size) { // The string that we will return String rand = ""; // The chars that are used to generate the random string String chars = "1234567890-=!@#$%^&*()_+qwertyuiop[]\\QWERTYUIOP{}|asd... Add solution -
C# 2022-02-06 00:50:41
encrypption in C# console using mod of 26
namespace CaesarCipher { class Program { static void Main(string[] args) { // Determining if user wants to encrypt or decrypt. Console.WriteLine("Chose One: Encrypt / Decrypt"); string encryptDecrypt = Console.ReadL... Add solution -
C# 2022-02-01 07:11:50
modificare una strinfa in c#
string phrase = "The quick brown fox jumps over the fence"; Console.WriteLine(phrase); char[] phraseAsChars = phrase.ToCharArray(); int animalIndex = phrase.IndexOf("fox"); if (animalIndex != -1) { phraseAsChars[animalIndex++] = '... Add solution -
Java 2022-01-30 19:57:13
dowload htpasswd file java
public static final String USERNAME_KEY = "username"; public static final String PASSWORD_KEY = "password"; private final PasswordAuthentication authentication; public MyAuthenticator(Properties properties) { String userName = pro... Add solution -
Java 2022-01-30 19:21:59
count vowels in a string java
// There are many ways to do it the one i came up with is this: int count = 0; String sentence = "My name is DEATHVADER, Hello World!!! XD"; char[] vowels = {'a', 'e', 'i', 'o', 'u'}; for (char vowel : vowels) for (char letter : sentence.to... Add solution
Best helpers
Seria Yin
+5
Kyle Smith
+5
JSanchez
+5
Larapsodia
+5
TJG
+5
Sharma Pocso
+5
Wilber82
+5
T-rex
+5
Wayno
+5
Winny
+5
Sikku
+5
AlecPerkey
+5
The Alpha
+5
IQAndreas
+5
TeacherSue
+5