Javac
banner
java-dev.bsky.social
Javac
@java-dev.bsky.social
- Tips and tricks for programming in Java 🤖
- Main account @asjordi.dev 💻
Sort a Map by Value in #Java
December 20, 2024 at 2:29 PM
Use properties or configuration files in an efficient and simple way in #Java
December 19, 2024 at 5:30 PM
Safely cast long to int in #Java
December 18, 2024 at 5:48 PM
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
December 17, 2024 at 4:45 PM
Write data to a file using BufferedWriter in #Java
December 16, 2024 at 5:00 PM
Read all content from a file into a String with #Java
December 13, 2024 at 3:10 PM
Read a file with FileInputStream in #Java
- Use instead if you need more control over charset.
- For large files or binary data.
December 12, 2024 at 2:30 PM
Read all lines from a file using BufferedReader and try-with-resources in #Java
December 11, 2024 at 4:00 PM
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.
December 10, 2024 at 5:32 PM
Print nested array in #Java
December 9, 2024 at 3:00 PM
Print an array in #Java
December 6, 2024 at 5:10 PM
Calculate the sum of all elements of an integer array with the Stream API in #Java
December 5, 2024 at 4:22 PM
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.
December 4, 2024 at 5:00 PM
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.
December 3, 2024 at 4:56 PM
Find the maximum and minimum values of an array using Collections.min() and Collections.max() in #Java
December 2, 2024 at 4:00 PM
Convert a double array to list of Double in #Java
November 29, 2024 at 3:35 PM
How to sort an array of integers in #Java
November 28, 2024 at 3:45 PM
Convert a int array to list of Integer in #Java
November 27, 2024 at 3:55 PM
Convert a String array to a list of strings in #Java
November 26, 2024 at 4:00 PM
Reverse a String in #Java
November 25, 2024 at 3:30 PM
System.out.println("Hello World!")
November 23, 2024 at 11:58 PM