Android Path Create getNameAppendStr(String path, String Str)

Here you can find the source of getNameAppendStr(String path, String Str)

Description

get Name Append Str

Declaration

public static String getNameAppendStr(String path, String Str) 

Method Source Code

//package com.java2s;

public class Main {

    public static String getNameAppendStr(String path, String Str) {
        int i = path.lastIndexOf(".");
        if (i == -1 || i == 0)
            return path + Str;
        return path.substring(0, i) + Str
                + path.substring(i, path.length());
    }/*from w w  w  .j a  va  2  s. c o  m*/
}

Related

  1. getFolderPathNameYearAndMonthSubDirectoryDay()
  2. getNameDelLastPath(String fileName)
  3. getPath(String path, String parent)
  4. getRealPath(String name)
  5. getFullPath(String inBaseUrl, String inUrl)
  6. getParentNameofPath(String path)