What is the error with this code: public int getnumber(){ int number = 0}
The code you provided appears to be written in the Java programming language. 
The error in the code is that the line `int number = 0` is missing a semicolon `;` at the end, which is necessary to indicate the end of a statement in Java.

Here's the corrected version of the code:

```
public int getnumber(){ 
   int number = 0;
}
```