Seymour Jones

Greenhorn
+ Follow
since Feb 05, 2018
Seymour likes ...
Eclipse IDE Java VI Editor
I have been a Java programmer for many years in the professional world.
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
1
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by Seymour Jones

I suppose you take just take a filename by itself and toAbsolutePath() will assume the full path as the current working directory. Doesn't matter the file doesn't exist because we aren't trying to open/read/etc to the file.


Output:
4 days ago
I think your confusion is that reverseOrder() will reverse the natural order "alphabetically" and not "positionally".
5 days ago
Honesty I won't do java development without Eclipse. I find it invaluable in so many ways I can't list them here. It would be hard for me to create and manage a Maven project without Eclipse.
1 week ago
Ehhh, seems I am late again.

1 week ago
What is the length of text? What is number? Your substring is starting at the end of text to start with.
1 week ago
My interface names start with a capital letter and get named for what they are in general terms. So Widget, Bicycle, Boat, StorageContainer, etc.
1 week ago
Sure thing. These two ipv4 addresses in hex string format....



Will convert to these Strings....

Not sure the code describes everything. Are you expecting 1 or 2 or many arguments on the command line? Maybe provide the command line syntax? (exec arg1 arg2 arg3)
1 week ago
The result would need to be a properly formatted ipv4 address.
I probably didn't explain what I was needing to do good enough. Using your suggestion results in a number format exception. I did find what I needed to convert a hex string ipaddress to string.



I am doing a snmp query to a device using snmp4j libraries and one of the OID table entries will contain a value of type InetAddress. The InetAddress may be ipv4 or ipv6.

For example, an ipv4 InetAddress looks like this.... "01:01:01:01". Pretty sure this equates to "1.1.1.1".

My question is in terms of Java, how do I convert "01:01:01:01" to the 4 octet dotted decimal equivalent. Same question applies to for ipv6, I don't have an ipv6 example, but I recall it was like 16 dotted numbers.

I was looking at DatatypeConverter.parseHexBinary(), but that only works if I just remove the colons. Ideas?
My question is related to the logistics of the request. Did they provide a laptop and request you to do it in the interview? What was the time frame for this request?
2 weeks ago
Seems if you have 2 programs running on the same laptop and one of them eats up enough memory to get an out of memory error, I would think the other process would see the same fate eventually. There is only so much memory available on the system as a whole. Now I feel like trying it out on my laptop.
2 weeks ago
When I first learned Java many years ago, I was i++ for me and not much has changed in the years since. 
2 weeks ago