Public class Prog1
{
static final char = BLANK = ` `;
static final char ONE 5;
public static void main (String[] arg);
{
a = one + 5;
b = a + blank;
cc := a + one * 2;
ONE = b + c;
System.out.println(''a = '' + a
+ '', b = '' + b
+ '', cc = '' + cc);
}
}
kendallniall
0
Newbie Poster
Recommended Answers
Jump to Post:= is a Pascal construct, Java uses = (so no :).
a, b, cc aren't defined anywhere. Compiler won't like that either.
You're trying to assign a value to a final variable.Depending on the types you give a, b, and cc you will get other errors or not.
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.