public static void main(String[] args) { Exception e = new Exception(); LOGGER.error("处理异常{}", "[main方法]", e); String s = MessageFormat.format("hello{0}","[MAIN]"); System.out.println(s); System.out.printf("%s %<s %s %<s","a","b"); }
三种format格式
猜你喜欢
转载自blog.csdn.net/u011402896/article/details/80417656
今日推荐
周排行