Java tutorial
//package com.java2s; public class Main { public static String dateChange(String date) { StringBuilder sb = new StringBuilder(); String[] dateStr = date.split("-"); for (int i = 0; i < dateStr.length; i++) { sb.append(dateStr[i]); } return sb.toString(); } }