Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import java.util.List;

public class Main {
    /************************begin airthmetic ****************************/
    public static void printListThroughRandomAccess(List list, String logTag) {
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < list.size(); i++) {
            sb.append(list.get(i) + " ");
        }

        System.out.println(logTag + " " + "printListThroughRandomAccess::" + sb.toString());
    }
}