The first programming exercise involves drawing images using the Java Graphics2D class in the java.awt package. We don't expect you to know all of the classes and methods; so don't worry if you have never heard of the methods <code>fillRect</code> or <code>drawLine</code>, what is important is that you can use these methods after you have seen some examples.

The first programming exercise involves drawing images using the Java Graphics2D class in the java.awt package. We don't expect you to know all of the classes and methods; so don't worry if you have never heard of the methods <code>fillRect</code> or <code>drawLine</code>, what is important is that you can use these methods after you have seen some examples.

−

You should be able to compete all of the [[Assessment 2008 Easy|easy]] examples, you should also be able to compete at least some of the medium problems.

+

You should be able to compete all of these [[Assessment 2008 Easy|easy examples]], you should also be able to compete at least some of the [[Assessment 2008 Medium|medium problems]].

You will find help, and many examples of graphics problems in the [[Flags Tutorial]].

You will find help, and many examples of graphics problems in the [[Flags Tutorial]].

Revision as of 10:00, 26 February 2009

Work in progress

Edinburgh Napier University, School of Computing.

For students wanting to gauge their programming skills with a view to entering at second or third year.

Background

For many programmes it is important that you have the ability to build programs in Java. This section shows you the kinds of skills that are taught in first and second year. You can follow the tutorials and take the tests.

Graphics

The first programming exercise involves drawing images using the Java Graphics2D class in the java.awt package. We don't expect you to know all of the classes and methods; so don't worry if you have never heard of the methods fillRect or drawLine, what is important is that you can use these methods after you have seen some examples.