Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

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

Threaded View

  1. #1
    Junior Member yel_hiei's Avatar
    Join Date
    Jul 2010
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Need Help on the Interface Function

    Hi can someone help me on this. I have this code below:

    Set.java
    public interface Set{
      public Set union (Set A,Set B)
    }
     
    MySet.java
     
    public class MySet implements Set{
     
       public Set union (Set A, Set B){
     
       }
     
       public static void main (String args[]){
           Set A = new MySet();
           Set B = new MySet();
           MySet mainSet = new MySet();
           mainSet.union();
       }
    }
    --> Can someone please tell me how to implement the union class? And how do you put values on Set A and Set B?

    Thanks so much!
    Last edited by yel_hiei; July 27th, 2010 at 10:33 PM.


Similar Threads

  1. How To Make The Program Jump To The Next Function..
    By Kumarrrr in forum What's Wrong With My Code?
    Replies: 7
    Last Post: March 3rd, 2010, 12:33 AM
  2. Substring function
    By bristol580 in forum Java SE APIs
    Replies: 2
    Last Post: November 12th, 2009, 11:29 AM
  3. How to Pass unlimited Arguments to a Function
    By neo_2010 in forum Java Programming Tutorials
    Replies: 2
    Last Post: July 8th, 2009, 11:39 AM
  4. Function of difference between two numbers
    By uplink600 in forum Java Theory & Questions
    Replies: 2
    Last Post: May 13th, 2009, 05:57 AM
  5. Traverse Function for Knights tour
    By budder8818 in forum Java Theory & Questions
    Replies: 0
    Last Post: February 4th, 2009, 03:49 PM