I am working on Android project and I am getting an error which I cannot understand:
Array initializer is not allowed here
I tried to simplify my code and it comes down to this
public class MainActivity extends Activity{
    int pos = {0, 1, 2};
    @Override
    protected void onCreate(Bundle savedInstanceState){
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        pos = {2, 1, 0};
    }
}
What is going on here?
 
     
     
     
     
     
     
    