Back to Blog
JS
Author

John Shepard

Showing 7 posts by John Shepard.

Tutorial

Making a Java SafeString that works with all unicode characters

In Java, there is an issue with String when using characters that take up more than 2 bytes in UTF-16. substring() and similar methods can split the character in the middle. I was thinking switching Strings to UTF-8 might be good, and there are currently two JEPs for Java 9 somewhat related to this. 226: UTF-8 Property Files and 254: Compact Strings. But thinking about this a little more, I don't necessarily want a UTF-8 String class, but a String class that works with all unicode characters. Here's how I did it.

JS
John ShepardJanuary 4, 2016
Show Reports

Java One 2015

See what John Shepard noted from the 2015 Java One conference sessions he attended.

JS
John ShepardOctober 15, 2015
TutorialOpinion

Converting a Java Spring application to Scala

Supposedly Scala requires a completely different programming style. But what happens when you just want a Spring application? Is it possible to program in Scala without jumping in the deep end? Chariot's John Shepard illustrates the difference in approach in this quick tutorial.

JS
John ShepardAugust 15, 2014

Ready to transform your business?

We solve complex business problems with technology. Let's discuss how we can help you build, modernize, and grow.

Start A Conversation