Advertisement ยท 728 ร— 90

Posts by Javac

Sort a Map by Value in Java

Sort a Map by Value in Java

Sort a Map by Value in #Java

1 year ago 2 1 0 0
Use properties or configuration files in an efficient and simple way in Java

Use properties or configuration files in an efficient and simple way in Java

Use properties or configuration files in an efficient and simple way in #Java

1 year ago 1 1 0 0
Safely cast long to int in Java

Safely cast long to int in Java

Safely cast long to int in #Java

1 year ago 2 1 0 0
Write and Read data from a file using RandomAccessFile in Java

Write and Read data from a file using RandomAccessFile in Java

Write and Read data from a file using RandomAccessFile in #Java
- Allows direct access to specific parts of a file
- Bidirectional reading and writing
- Working with fixed record structure files
- Modifying specific parts of a file

1 year ago 3 1 1 0
Write data to a file using BufferedWriter in Java

Write data to a file using BufferedWriter in Java

Write data to a file using BufferedWriter in #Java

1 year ago 1 1 0 0
Read all content from a file into a String with Java

Read all content from a file into a String with Java

Read all content from a file into a String with #Java

1 year ago 4 1 0 0
Read a file with FileInputStream in Java

Read a file with FileInputStream in Java

Read a file with FileInputStream in #Java
- Use instead if you need more control over charset.
- For large files or binary data.

1 year ago 1 1 0 0
Read all lines from a file using BufferedReader and try-with-resources in Java

Read all lines from a file using BufferedReader and try-with-resources in Java

Read all lines from a file using BufferedReader and try-with-resources in #Java

1 year ago 2 1 0 0
Read all lines from a file in one pass in Java

Read all lines from a file in one pass in Java

Read all lines from a file in one pass in #Java

- More simple, without the need of manage a buffer, but can be memory-intensive.
- Best for small to medium files.

1 year ago 3 1 0 0
Print nested array in Java

Print nested array in Java

Print nested array in #Java

1 year ago 5 1 0 0
Advertisement
Print an array in #Java

Print an array in #Java

Print an array in #Java

1 year ago 1 1 0 0
Calculate the sum of all elements of an int array with the Stream API in #Java

Calculate the sum of all elements of an int array with the Stream API in #Java

Calculate the sum of all elements of an integer array with the Stream API in #Java

1 year ago 3 2 0 0
Find the maximum and minimum values โ€‹โ€‹of an array using IntSummaryStatistics in #Java

Find the maximum and minimum values โ€‹โ€‹of an array using IntSummaryStatistics in #Java

Find the maximum and minimum values โ€‹โ€‹of an array using IntSummaryStatistics in #Java

- It also allows you to obtain statistics such as count, sum and average.

1 year ago 3 2 0 0
Find the maximum and minimum values of an array using API Stream in Java

Find the maximum and minimum values of an array using API Stream in Java

Find the maximum and minimum values โ€‹โ€‹of an array using API Stream in #Java

- Optionally you can use OptionalInt instead of getAsInt() to verify if the value is present or not.

1 year ago 1 1 0 0
Find the maximum and minimum values of an array using Collections.min() and Collections.max() in Java

Find the maximum and minimum values of an array using Collections.min() and Collections.max() in Java

Find the maximum and minimum values of an array using Collections.min() and Collections.max() in #Java

1 year ago 2 1 0 0
Convert a double array to list of Double in 
#Java

Convert a double array to list of Double in #Java

Convert a double array to list of Double in #Java

1 year ago 1 1 0 0
How to sort an array of integers in Java

How to sort an array of integers in Java

How to sort an array of integers in #Java

1 year ago 3 1 0 0
Convert a int array to list of Integer in Java

Convert a int array to list of Integer in Java

Convert a int array to list of Integer in #Java

1 year ago 1 1 0 0
Convert a String array to a list of strings in Java

Convert a String array to a list of strings in Java

Convert a String array to a list of strings in #Java

1 year ago 2 1 0 0
Reverse a String in Java

Reverse a String in Java

Reverse a String in #Java

1 year ago 2 1 0 0
Advertisement

System.out.println("Hello World!")

1 year ago 1 0 0 0