Here you can find the source of prettyPrintListOfClasses( Collection
public static StringBuffer prettyPrintListOfClasses( Collection<String> package1DependenciesOnPackage2)
//package com.java2s; /**/* w w w . j a v a 2 s .c o m*/ * Copyright 2007 - 2009 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * For more information visit * http://wiki.architecturerules.org/ and * http://blog.architecturerules.org/ */ import java.util.Collection; public class Main { public static StringBuffer prettyPrintListOfClasses( Collection<String> package1DependenciesOnPackage2) { final StringBuffer listOfClasses = new StringBuffer(); for (String javaClassName : package1DependenciesOnPackage2) { listOfClasses.append("\t|\t"); listOfClasses.append(" |-- @ "); listOfClasses.append(javaClassName); listOfClasses.append("\n"); } return listOfClasses; } }