Android Hex String Create FileNamePathExtension(String filename)

Here you can find the source of FileNamePathExtension(String filename)

Description

File Name Path Extension

Declaration

public static String FileNamePathExtension(String filename) 

Method Source Code

//package com.java2s;

public class Main {
    public static String FileNamePathExtension(String filename) {
        int index = filename.lastIndexOf(".");
        if (index != -1) {
            return filename.substring(index, filename.length());
        } else {/*from   w  w  w .  j a va 2  s . c o  m*/
            return "";
        }
    }
}

Related

  1. getHexString(int[] b)
  2. getHexString(int[] b, String splitString)
  3. getHexString(int i)
  4. isHex(String sampleData)
  5. isHexStringChar(char c)
  6. pathExtension(String fileName)
  7. hexStringToBytes(String hexString)
  8. appendHex(StringBuffer stringbuffer, byte byte0)
  9. toHexString(char achar0)