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 3 of 3

Thread: Advanced programming techniques

  1. #1
    Junior Member
    Join Date
    Jan 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Advanced programming techniques

    my question about java design patterns ı do not understand although ı read topics many times ı have 3 projects about design patterns ı tried to learn but in vain is there anyone to help me about my projects or to understand about design patterns thanks in advance


  2. #2
    Super Moderator curmudgeon's Avatar
    Join Date
    Aug 2012
    Posts
    1,130
    My Mood
    Cynical
    Thanks
    64
    Thanked 140 Times in 135 Posts

    Default Re: Advanced programming techniques

    We can help, but better would be if you ask a specific question rather than a general and vague question. Otherwise about the best we can do is refer you to the Gang of Four book or the Head First book.

  3. #3
    Junior Member
    Join Date
    Jan 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Advanced programming techniques

    thanks for suggestions but ı have too short time to read a book and to try to understand ı need short way It did not work when ı tried to make my project by reading .I could not correlate theory with realty for example ı wonder adapter method and ı read about it many article but ı could not apply this project
    (You have bought from some programmer a new class implementation Window with the following interface (it is a very powerful class, well written and efficient in use)
    class Window {
    public void showWindow(String title, int sizex, int sizey);
    public void moveWindow(int dx, int dy);
    public void closeWindow();
    public void writeText(int x, int y, String text);
    }

    But you have a lot of programs already using another class representing windows with the following interface

    interface WindowInterface {
    public void CreateWindow(int x, int y, String title);
    public void MoveTo(int dx, int dy);
    public void Close();
    public void Text(String s, int x, int y);
    }

    You had an old window class (but you don't like it any more and you want to stop using it).
    class OldWindow implements WindowInterface { ... }

    Write a new class-adapter (object-adapter), using the new bought implementation but having the legacy interface

    )

Similar Threads

  1. Book on advanced subjects in java
    By eraskino in forum Java Theory & Questions
    Replies: 0
    Last Post: December 17th, 2012, 02:16 PM
  2. Replies: 2
    Last Post: November 29th, 2012, 02:37 PM
  3. advanced regular expression question
    By chopficaro in forum Java Theory & Questions
    Replies: 5
    Last Post: June 8th, 2012, 03:03 PM
  4. Advanced java
    By deependeroracle in forum JDBC & Databases
    Replies: 3
    Last Post: February 1st, 2012, 05:45 AM