I am creating a program where I need to pass different parameters into a single getter and have it print out different valaues based on the paramter.
So far I have one string which I used substrings to divide the string into different chunks then convert them to ints. so now I need to assign these different ints to paramter numbers which would be passed through to the getter for printing.
this is how the different values would be passed into the getter:
there are 2 ways to accomplish this task.
one way is provide getter/setter for octet1,octet2,octet3,octet4 . an another way is wrap the values into a single int Array and provide getter/setter .