public class Comic {
public int ComicNumber;
public String ComicTitle;
public String ComicDate;
//constructor
public Comic(int a, String t, String d)
{
ComicNumber = a;
ComicTitle = t;
ComicDate = d;
}
}
function MakeArrays()
{
ComicArray[0] = new Comic(12001, "The Grass is Always Greener", "July 1 2012");
}
Other then the line above in my html, all the html code works (tables pics etc..) However my java is not running. Here's what I have accounted for already; file paths are all correct, I have gone over the sintax a dozens times. What am I doing wrong here. I'm an experienced c# and c++ if that helps anyone understand why I may be makeing a stupid mistake here. thanks in advance for the help.
It looks like you mess java and javascript. Are you sure you know what are you doing at all? You could not insert java sources as scripts in html and javascript have no "classes" like java...
Bookmarks