Results 1 to 3 of 3
  1. #1
    Patricia6946 is offline Member
    Join Date
    Jan 2013
    Posts
    6
    Rep Power
    0

    Default Help with UML diagram

    Hello, im quite new to java and we need to create UML diagrams to all of our java codes for school. My problem is that i dont even know how to begin.
    Our books isnt helping much and neither google. Can someone give me an example of how to make an UML diagram from this code below so that i can understand how to do it. I dont even understand when to use class diagram or any of the other... feel really lost and my teachers do not help much :(



    import java.text.DecimalFormat;
    import java.util.Scanner;
    import java.lang.Math;
    public class Cylinder {

    public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    DecimalFormat df = new DecimalFormat ("0.00");
    double radie,höjd,area,volym;
    System.out.println("radie");
    radie=sc.nextDouble();
    System.out.println("höjd");
    höjd=sc.nextDouble();
    area =2*Math.PI*radie*höjd;

    System.out.println("Arean är : " + df.format (area));

    volym=Math.PI*Math.pow(radie,2)*höjd;
    System.out.println("Volymen är :" + df.format(volym));

    }
    }


    thanks in advance

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,453
    Rep Power
    20

    Default Re: Help with UML diagram

    Do we have to tell you about the code tags every time? And are you planning to abandon this thread just like you did the other one?
    Whats missing in this code?

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    Patricia6946 is offline Member
    Join Date
    Jan 2013
    Posts
    6
    Rep Power
    0

    Default Re: Help with UML diagram

    I didnt abandon the thread... maybe before you accuse me of something you can ask what happened. I was without internet for months because i had to move out from the flat i was staying in and look for a new place to stay. It took months and i had to live with a friend that didnt have internet.
    So wanna continue to be rude? And im asking about the UML diagram now and nothing else. If you dont want to help me its ok, ill figure it out eventually. I dont need a hostile environment like this one

Similar Threads

  1. UML diagram
    By alpdog14 in forum New To Java
    Replies: 4
    Last Post: 05-02-2011, 07:53 PM
  2. UML diagram
    By JackDaniels in forum New To Java
    Replies: 7
    Last Post: 03-08-2011, 04:11 AM
  3. How to generate Data Flow Diagram(Work Flow Diagram)
    By stsivaraj in forum AWT / Swing
    Replies: 1
    Last Post: 12-23-2010, 12:21 AM
  4. plz i need help ((ER diagram))
    By sweet angle in forum JDBC
    Replies: 9
    Last Post: 02-01-2009, 11:28 PM
  5. UML diagram
    By jvasilj1 in forum New To Java
    Replies: 4
    Last Post: 03-08-2008, 07:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •