Java --> uml (class diagram)


I already know the basics of java but now im trying to learn uml and im using this product because it seems good.

I don’t know it this is the right forum to put it but it is java related to i post it here.


I’m trying to make a class diagram based on the following code:

public class Something{

private Week Week;
private Ingridient[] product;
private Supermarkt dealer;
private int status = NEW;
private Date orderData;

public Order(Week week){}
Public void send () {}

How do i put “[]” & “int status = NEW” in a class diagram?


Current uml diagram:

Dear Jan,

Just invoke the Open Specification dialog box of an attribute/operation/parameter and select or type in the desired value in the “Type modifier” field.