0

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

Edited by abdullah_8: i needed to cghange something

2
Contributors
1
Reply
15
Views
3 Years
Discussion Span
Last Post by JamesCherrill
1

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

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.