Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图理解几个 Java 概念:
你可以这样做:
public String makeName(String prefix, int min, int max) { return prefix + "_" + min + "_" + max; }
然后你可以调用它:
String firstName = makeName("Name", 1, 10); // etc.