java - string cannot be resolved to a type -
i getting "string cannot resolved type" error in code.
public class main { public static void main(string[] args) { // todo auto-generated method stub formletter template; template = new formletter(); template.print(); template.composeformletter(sean, colbert, god); template.print(); } } class formletter { public void print(){ system.out.println(to + candidate + from); } public void composeformletter(string t, string c, string f){ = t; candidate = c; = f; } private string to; private string candidate; private string from; }
string
capitalized in java. cannot use lowercase string
. (that's c#)
side question:
how following compiling @ all?
template.composeformletter(sean, colbert, god);
Comments
Post a Comment