
Write String to file using PrintWriter in Java
According to Java API docs, the PrintWriter “Prints formatted representations of objects to a text-output stream. This class implements all of the print methods found in PrintStream. It does not […]
According to Java API docs, the PrintWriter “Prints formatted representations of objects to a text-output stream. This class implements all of the print methods found in PrintStream. It does not […]
The comparator API enables you to sort a given collection is many different ways. Unlike the “Comparable” API, Comparator can sort any instances of any class. Output:
The comparator API enables you to sort a given collection is many different ways. Unlike the “Comparable” API, Comparator can sort any instances of any class. Output:
To sort an ArrayList, you need the Collections Class from java.util as shown below:
The try-with-resources statement is a try statement that declares one or more resources. A resource is an object that must be closed after the program is finished with it. The […]
This instruction will work on most Linux ditros, for windows use the absolute path and make sure mysql is added to your “Environment Path” 1) /etc/init.d/mysql stop 2) mysqld_safe –skip-grant-tables & […]
This is very handy when you quickly need to share files over a network/internet: 1. Create a folder e.g mkdir /var/www/temp 2. enter folder and run python -m SimpleHTTPServer 443 […]
This is for Linux base OSes and Qemu must be installed before running the command: From your Linux terminal run: qemu-img convert -O raw input_file.xva output_file.raw remember to replace the […]
The problem is caused because of a wrong version of PHP SimpleXML extension. Here’s aworkaround: 1. Open config.xml with a text editor. The full path is: app/code/core/Mage/Install/etc/config.xml 2. Find below […]
Copyright © 2021 | WordPress Theme by MH Themes