Hallo,
De compiler zegt: illegal start of expression. Het gaat om de regel: public class Opteller
Ik zie het probleem niet, ik ben ergens iets kleins vergeten denk ik maar zie het niet. Ik gebruik BlueJ en dit is de code:
Bvd Luuk
public class opteller
{
// instance variables - replace the example below with your own
private int x;
/**
* Constructor for objects of class opteller
*/
public opteller()
{
// initialise instance variables
x = 0;
}
/**
* An example of a method - replace this comment with your own
*
* @param y a sample parameter for a method
* @return the sum of x and y
*/
public int sampleMethod(int y)
{
public class Opteller
{
public static void main (String args[])
{
int oGrens = Integer.parseInt (args[0]);
int bGrens = Integer.parseInt (args[1]);
System.out.println(oGrens);
System.out.println(bGrens);
}
}
}
}
De compiler zegt: illegal start of expression. Het gaat om de regel: public class Opteller
Ik zie het probleem niet, ik ben ergens iets kleins vergeten denk ik maar zie het niet. Ik gebruik BlueJ en dit is de code:
Bvd Luuk
public class opteller
{
// instance variables - replace the example below with your own
private int x;
/**
* Constructor for objects of class opteller
*/
public opteller()
{
// initialise instance variables
x = 0;
}
/**
* An example of a method - replace this comment with your own
*
* @param y a sample parameter for a method
* @return the sum of x and y
*/
public int sampleMethod(int y)
{
public class Opteller
{
public static void main (String args[])
{
int oGrens = Integer.parseInt (args[0]);
int bGrens = Integer.parseInt (args[1]);
System.out.println(oGrens);
System.out.println(bGrens);
}
}
}
}