I have a PowerShell snap-in for manipulating a database. The snap-in itself is just a wrapper for the main library implemented in a separate .NET DLL all written in...
  • April 3, 2022
  • 0 Comments
Avoid the Date object creation w/ System.currentTimeMillis(). A divide by 1000 gets you to Unix epoch. As mentioned in a comment, you typically want a primitive long (lower-case-l long)...
  • April 3, 2022
  • 0 Comments
I’m still learning the ropes of Java so sorry if there’s a obvious answer to this. I have a program that is taking a ton of memory and I...
  • April 3, 2022
  • 0 Comments
Java Collections provide LinkedHashMap out of the box, which is well-suited to building caches. You probably don’t have this in Java ME, but you can grab the source code...
  • April 3, 2022
  • 0 Comments