What do you want to save?
Add Code snippet
New code examples
-
Java 2021-11-18 20:22:24
convert hashset to array
// First of all, you shouldn't use raw types. // Use : Set<Integer> set = new HashSet<>(); set.add(4); set.add(1); // Then convert to array : Integer[] arr = x.toArray(new Integer[set.size()]); // Using x.toArray() would give you an Object[]. Add solution -
Html 2021-08-29 16:18:02
make a command prompt with your own commands html
#kill-server #!/bin/bash RED='\e[31m' NOCOLOR='\033[0m' GREEN='\e[92m' echo -e "Getting PID's from port :$1..." PIDINFO=`netstat -ano | findstr :$1` if [ $# -eq 0 ] then echo -e "${RED}No port number specified" ec... Add solution