Below code will print the asterisk pyramid upto 5 level

in the above program we are initializing three loops, our basic requirement is to print the pyramid up to 5 label, so first loop will run up to 5,…

Using the java.net.InetAddress, We can Get the localhost IP Address in Java. To get the localhost IP, We can Use the Code like

The traditional IP Addresses (IPv4) uses a 32-bit number to represent an IP address, and…