Here you can find the source of showVxlanHeaderOutput()
public static void showVxlanHeaderOutput()
//package com.java2s; /*// w ww . j a va 2s . c o m * Copyright (c) 2016 Ericsson India Global Services Pvt Ltd. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ import java.util.Formatter; public class Main { private static final String VXLAN_OUTPUT_FORMAT = "%-24s %-24s %-18s %-5s"; private static final String VXLAN_OUTPUT_FORMAT_LINE1 = "%-49s %-45s"; public static void showVxlanHeaderOutput() { StringBuilder sb = new StringBuilder(); Formatter fmt = new Formatter(sb); System.out.println(fmt.format(VXLAN_OUTPUT_FORMAT_LINE1, "Name", "Description")); sb.setLength(0); System.out.println(fmt.format(VXLAN_OUTPUT_FORMAT, "Local IP", "Remote IP", "Gateway IP", "AdmState")); sb.setLength(0); System.out.println(fmt.format(VXLAN_OUTPUT_FORMAT, "OpState", "Parent", "Tag", "")); sb.setLength(0); System.out .println(fmt .format("--------------------------------------------------------------------------------")); fmt.close(); } }