yucatio@システムエンジニア

趣味で作ったものいろいろ

2022-09-01から1日間の記事一覧

【Java】スネークケース→キャメルケースに変換するプログラム

スネークケース(snake_case)からキャメルケース(camelCase)に変換するJavaのプログラムです。 public static String toCamelCase(String text) { if (text == null) { return null; } if ("".equals(text)) { return ""; } String[] words = text.split("_",…