Search Results for: java 8
-
File
Growable array of ints example
In this example we shall show you how to create a growable array of ints. We have created an example…
Read More » -
File
Decompress a zip folder
With this example we are going to demonstrate how to decompress a zip folder in Java. In short, to decompress…
Read More » -
BufferedInputStream
StreamTokenizer from BufferedReader example
This is an example of how to get and use a StreamTokenizer from a BufferedReader. The StreamTokenizer class takes an…
Read More » -
System
Get system properties with System
With this example we are going to demonstrate how to get system properties. We are using the System class, that…
Read More » -
System
Determine Operating System with System
This is an example of how to determine the Operating System with System class. The System class, that contains several…
Read More » -
Runtime
Suggest Garbage Collection to the JVM
With this example we are going to demonstrate how to suggest Garbage Collection to the JVM. We are using the…
Read More » -
Runtime
Get JVM memory information with Runtime
This is an example of how to get the JVM memory information with Runtime class. Every Java application has a…
Read More » -
String
Search String with indexOf method
This is an example of how to search a String using the indexOf method of String class. The String class…
Read More » -
String
Convert String to byte array ASCII encoding
This is an example of how to convert a String to byte array with ASCII encoding. The String class represents…
Read More » -
String
Convert String to byte array UTF encoding
public static byte[] stringToBytesUTFCustom(String str) { byte[] b = new byte[str.length() << 1]; for(int i = 0; i < str.length();…
Read More »