How to Get localhost IP Address in Java

Using the, We can Get the localhost IP Address in Java. To get the localhost IP, We can Use the Code like import; import; public class IPAddress { public static void main(String[] args) { try { InetAddress ip = InetAddress.getLocalHost(); System.out.println(“IP is : ” + ip.getHostAddress()); } catch (UnknownHostException ex) { ex.printStackTrace(); … Read more

UnZIp Files using Package

Java provides the package to compress and decompress the files, to UnZip the zip file We are using ZipInputStream Class for input stream filter for reading files in the ZIP file format, ZipEntry Class to represent the Zip file entry and ZipOutputStream Class for output stream filter for writing files in the ZIP file … Read more

Restore MySql DB on Windows using Java

MYSQl is the world’s second most widely used open-source relational database management system. MYSQL RDBMS provides the mysql shell to restore the database, We can invoke the mysql command from command Prompt to restore the database, mysql shell can also be invoked from java using the java.lang.Runtime class. In the example we are going to … Read more