当前位置: 技术问答>java相关
各位好,下面是一个最简单的程序,可出错了!
来源: 互联网 发布时间:2015-10-10
本文导语: 错误为:exception in thread "main" java.lang.noclassdeffounderror:welcome/java import java.io.*; public class Welcome { public static void main(String[] args) { String[] greeting = new String[3]; greeting[0] = "Welcome to Cor...
错误为:exception in thread "main" java.lang.noclassdeffounderror:welcome/java
import java.io.*;
public class Welcome
{
public static void main(String[] args)
{
String[] greeting = new String[3];
greeting[0] = "Welcome to Core Java";
greeting[1] = "by Cay Horstmann";
greeting[2] = "and Gary Cornell";
for (int i = 0; i
import java.io.*;
public class Welcome
{
public static void main(String[] args)
{
String[] greeting = new String[3];
greeting[0] = "Welcome to Core Java";
greeting[1] = "by Cay Horstmann";
greeting[2] = "and Gary Cornell";
for (int i = 0; i