Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Don't know java ...Need help compare, explain 2 different versiosn of code.

  1. #1
    Junior Member
    Join Date
    Oct 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Don't know java ...Need help compare, explain 2 different versiosn of code.

    I don't know anyting aboutjava programing. Please explain to me whatcodes below mean?Differences between 2 version?
    Thanks for all the help that one can provide. Truly ppreciated.

    Taskmanager.java

    Version 2.0
    public interface TaskManager {
    Task[] getTasks();
    public Task getRootTask();
    public void clear();
    public GanttTask getTask(int taskId);
    public void registerTask(Task task);
    public GanttTask createTask();

    version 2.1
    public interface TaskManager {
    Task[] getTasks();
    public Task getRootTask();
    void projectOpened();
    public void projectClosed();
    public GanttTask getTask(int taskId);

    Could you please explain to me the different between 2 versions above? Description? What version 2.0 try to do and 2.1 try to do? Impact of the changes? Which taxonomy of code chages the version 2.1 belong to?
    1. method of change
    2. method parameter change
    3. if statement change
    4. variable change
    5. constraint changes
    6. calling dependency changes
    7. new / delete method

    Another one
    Tasklistener.java
    version 2.0
    public interface TaskListener extends EventListener {
    void taskScheduleChanged(TaskScheduleEvent e);
    void dependencyAdded(TaskDependencyEvent e);
    void dependencyRemoved(TaskDependencyEvent e);
    void taskAdded(TaskHierarchyEvent e);
    void taskRemoved(TaskHierarchyEvent e);
    void taskMoved(TaskHierarchyEvent e);
    void taskPropertiesChanged(TaskPropertyEvent e);

    void taskProgressChanged(TaskPropertyEvent e);
    }
    version 2.1
    public interface TaskListener extends EventListener {
    void taskScheduleChanged(TaskScheduleEvent e);
    void dependencyAdded(TaskDependencyEvent e);
    void dependencyRemoved(TaskDependencyEvent e);
    void taskAdded(TaskHierarchyEvent e);
    void taskRemoved(TaskHierarchyEvent e);
    void taskMoved(TaskHierarchyEvent e);
    void taskPropertiesChanged(TaskPropertyEvent e);
    void taskProgressChanged(TaskPropertyEvent e);

    void taskModelReset();
    }

    Could you please explain to me the different between 2 versions above? Description? What version 2.0 try to do and 2.1 try to do?
    Which taxonomy of code chages the version 2.1 belong to?
    1. method of change
    2. method parameter change
    3. if statement change
    4. variable change
    5. constraint changes
    6. calling dependency changes
    7. new / delete method


  2. #2
    Forum Squatter newbie's Avatar
    Join Date
    Nov 2010
    Location
    North Wales
    Posts
    661
    My Mood
    Stressed
    Thanks
    28
    Thanked 115 Times in 106 Posts
    Blog Entries
    1

    Default Re: Don't know java ...Need help compare, explain 2 different versiosn of code.

    We're not a homework service my friend.
    Either move along or restructure your question to ask specifics, and show some good intent while you're at it.

    Suggested Reading:
    How To Ask Questions The Smart Way
    http://www.javaprogrammingforums.com...-get-help.html
    Please use [highlight=Java]//code goes here...[/highlight] tags when posting your code

Similar Threads

  1. New to Java, could you explain something to me?
    By TP-Oreilly in forum Java Theory & Questions
    Replies: 6
    Last Post: September 18th, 2011, 07:12 AM
  2. Pls explain me the code logic
    By Shajith in forum What's Wrong With My Code?
    Replies: 1
    Last Post: March 25th, 2011, 02:41 AM
  3. Replies: 1
    Last Post: December 13th, 2010, 05:13 AM
  4. Can anyone explain this code for me
    By gudwindavids in forum Object Oriented Programming
    Replies: 1
    Last Post: December 11th, 2009, 02:29 PM
  5. Help me this code! Someone please explain strings!
    By helpthiscode in forum What's Wrong With My Code?
    Replies: 4
    Last Post: October 16th, 2009, 03:13 AM