Here you can find the source of appendLine(final StringBuilder s, final CharSequence line)
public static StringBuilder appendLine(final StringBuilder s, final CharSequence line)
//package com.java2s; // Licensed under the Apache License, Version 2.0 (the "License"); public class Main { public static StringBuilder appendLine(final StringBuilder s, final CharSequence line) { if (s.length() > 0) { s.append("\n"); }//from www . j a v a 2s . c om s.append(line); return s; } }