我在NetBeans中创建了一个仅用于字符串操作的类.我应该使用什么进口产品.
我甚至无法声明一个字符串变量,因为它没有为我自动生成导入.:P由于我是新手,我不知道Java世界中的必要性是什么.
这不起作用:
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package helloworld;
import java.text;
/**
*
* @author Sergio
*/
public class WordManipulations
{
public string[] ReturnAllVowels()
{
return string[] x;
}
}
Run Code Online (Sandbox Code Playgroud)
它说那个字符串;找不到符号;
| 归档时间: |
|
| 查看次数: |
2877 次 |
| 最近记录: |