Java – static and instance variables
Static variables are created once for a class and shared by all instances. Static variable is created the moment class is loaded. static variable example read more
Git – checkout remote branch
To checkout remote branch and track it from its remote origin $ git fetch $ git branch -v -a ##List available remote branches $ git read more
Ubuntu – reload iptables rules during boot
Steps to load iptable rules automatically on Ubuntu Linux using package iptables-persistent. Install iptables-persistent $ sudo apt-get install iptables-persistent When asked during installation should it read more
Java – print exception as string examples
Print exception stack trace Print exception short description
Java – string prefix match using startsWith
Java String startsWith(String prefix) example: To specify offset use startsWith(String prefix, int toffset)
Java – two dimensional array example
Java – two dimentional array example
Java – fill an array using java.util.Arrays
Fill all values in an array Fill range in an array