java获取字符串最后一个字符时间:2025-04-24 18:33:45第一种: String str = "daipogfhjoripa1"; char c = (() - 1); 第二种: (()-1);