hi trying to get this code to compile but it comes up with errors:
class ExampleOneBeta
{
public static void main(String args[])
{
ExampleOne ExampleOne_object = new ExampleOne();
//The line above is invoking an object of the type ExampleOne
int variable_1 = 10;
double variable_2 =5.5;
char variable_3 ='A';
local_variable_1 = ExampleOne_object.variable_1;
local_variable_2 = ExampleOne_object.variable_2;
local_variable_3 = ExampleOne_object.variable_3;
System.out.print(local_variable_1);
// System.out.print(" ");
// System.out.print(local_variable_2);
// System.out.print(" ");
// System.out.print(local_variable_3);
}
}
the errors are:
example_one.java:5: cannot find symbol
symbol : class ExampleOne
location: class ExampleOneBeta
ExampleOne ExampleOne_object = new ExampleOne();
^
example_one.java:5: cannot find symbol
symbol : class ExampleOne
location: class ExampleOneBeta
ExampleOne ExampleOne_object = new ExampleOne();
^
example_one.java:10: cannot find symbol
symbol : variable local_variable_1
location: class ExampleOneBeta
local_variable_1 = ExampleOne_object.variable_1;
^
example_one.java:11: cannot find symbol
symbol : variable local_variable_2
location: class ExampleOneBeta
local_variable_2 = ExampleOne_object.variable_2;
^
example_one.java:12: cannot find symbol
symbol : variable local_variable_3
location: class ExampleOneBeta
local_variable_3 = ExampleOne_object.variable_3;
^
example_one.java:13: cannot find symbol
symbol : variable local_variable_1
location: class ExampleOneBeta
System.out.print(local_variable_1);
^
6 errors
any ideas ???
i am new to java