我在 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;
}
}
它说字符串;找不到符号;
最佳答案
关于java - 对于任何程序,我必须在 Java 中使用哪些常见导入?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2076270/