Java tutorial
//package com.java2s; public class Main { public static String iCalHeader() { StringBuilder sb = new StringBuilder(); sb.append("BEGIN:VCALENDAR").append("\n"); sb.append("VERSION:2.0").append("\n"); sb.append("PRODID:-//bobbin v0.1//NONSGML iCal Writer//EN").append("\n"); sb.append("CALSCALE:GREGORIAN").append("\n"); sb.append("METHOD:PUBLISH").append("\n"); return sb.toString(); } }