50a49afa893a1da490e8ce7889ffaa107da16803.svn-base 408 B

1234567891011121314
  1. package com.sinosoft.am.systemFile.service;
  2. public class Test{
  3. public static void main(String[] args) {
  4. String a="E:\\消息发送\\原型\\toSendMsg.html";
  5. int g=a.lastIndexOf("\\");
  6. String b=a.substring(g);
  7. String c=a.substring(0, g);
  8. System.out.println("路径为==="+c);
  9. System.out.println("文件为==="+b);
  10. // System.out.println("路径为==="+c);
  11. System.out.println(a.length());
  12. }
  13. }