public class adding


public static void main(string[] args);
    int a=1;
    int b=2;
    sum c=a+b;
    system.out.println c(sum c);

help cant find symbol - method string

Same problem as in your previous post: "sum" is not a Java type, nor a class.
Line 8 also has invalid syntax for calling a method

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.