java string.format()

String text=String.format("$%1$s 门市价:¥%2$s",18.6,22);


$18.6 门市价:¥22
原文地址:https://www.cnblogs.com/jeno-song/p/6053503.html