Java List Create createRegion(String string, List regionList, int startIndex, int endIndex)

Here you can find the source of createRegion(String string, List regionList, int startIndex, int endIndex)

Description

create Region

License

Open Source License

Declaration

private static void createRegion(String string, List<String> regionList, int startIndex, int endIndex) 

Method Source Code

//package com.java2s;

import java.util.List;

public class Main {
    private static void createRegion(String string, List<String> regionList, int startIndex, int endIndex) {
        if (endIndex > startIndex) {
            regionList.add(string.substring(startIndex, endIndex));
        } else if (endIndex != startIndex) {
            throw new IllegalArgumentException("Bad substring range");
        }// w ww  .  ja  v a 2  s  .c o  m
    }
}

Related

  1. createPostBody(final List required)
  2. createPrimaryKeyList(String primaryKeyStr)
  3. createPrimaryKeysQuery(String tableName, List primaryKeys)
  4. createQueryLogMessage(String query, List parameterValues)
  5. createQueryString(String query, List params)
  6. createReleasesString(List tagsList)
  7. createResponse(String inputLabel, List imageLabels)
  8. createSingletonList(T element)
  9. createSourceExtensionList(Map sourceExtensionMap)

  10. HOME | Copyright © www.java2s.com 2016