Basically what I am needing is a way to take the input from the user of their ip address, then output the subsequent 8bits for each section as to which bits are on and off.
I currently have the user inputting their ip address in each section like so:
System.out.print("Please input the first set in your IP Address: ");
strHolder = kb.next();
first = Integer.parseInt(strHolder);
System.out.print("Please input the second set in your IP Address: ");
strHolder = kb.next();
second = Integer.parseInt(strHolder);
System.out.print("Please input the third set in your IP Address: ");
strHolder = kb.next();
third = Integer.parseInt(strHolder);
System.out.print("Please input the fourth set in your IP Address: ");
strHolder = kb.next();
fourth = Integer.parseInt(strHolder);
I'm not very experienced at Java. I've taken one class in college, and most of this I had to google how to do, but I've found nothing in regards to the bit process.