相关疑难解决方法(0)

GWT中的字符串格式化程序

如何在GWT中格式化我的字符串?

我做了一个方法

  Formatter format = new Formatter();
    int matches = 0;
    Formatter formattedString = format.format("%d numbers(s, args) in correct position", matches);
    return formattedString.toString();
Run Code Online (Sandbox Code Playgroud)

但它抱怨道

Validating newly compiled units
   [ERROR] Errors in 'file:/C:/Documents%20and%20Settings/kkshetri/workspace/MasterMind/MasterMind/src/com/kunjan/MasterMind/client/MasterMind.java'
      [ERROR] Line 84: No source code is available for type java.util.Formatter; did you forget to inherit a required module?
Run Code Online (Sandbox Code Playgroud)

不包括Formatter吗?

java gwt

37
推荐指数
4
解决办法
3万
查看次数

标签 统计

gwt ×1

java ×1