What is the error you are getting? We can't help you unless you say what is the error you got.
The one for Display.setDisplayMode(new DisplayMode(width, height)); is: Add arguments to match 'DisplayMode(int, int, int, int)'
but when I do that it just gives more errors
The error for } catch (LWJGLException e) { is: Create class 'LWJGLException' .
TheChernoProject did not get the error and I did the same as him