Search:

Type: Posts; User: pyler

Search: Search took 0.30 seconds.

  1. Replies
    2
    Views
    92

    Re: how to write java data to pdf file

    I did some gagoogling;
    https://community.oracle.com/message/5341572
    Java: convert a file to a byte array, then convert byte array to a file.
  2. [SOLVED] my cirular doubly linked list only adds first number

    I have an add() method for my doubly circular linked list which is supposed to add new Nodes at the end while maintaining the data structure. But when I create a doubly circular linked list and print...
  3. Declaring an object using an interface implemented by its class vs declaring an object using the class

    Suppose you have a generic Dog class of the pet type that implements a DogInterface of the pet type. What is the difference between;

    DogInterface<pet> Rex = new Dog<pet>();
    and
    Dog<pet> Tye =...
  4. Re: How many methods should be included in class definition

    So which is which?
  5. How many methods should be included in class definition

    Suppose you have an abstract class say Sparrow that extends the abstract Bird class. The abstract Bird class has the abstract methods, fly() and run()

    How many methods from the Bird class should...
  6. Best way of implementing a queue's isEmpty() method

    You have a queue called someQ
    There are two ways to find out if the queue is empty()

    head == null;

    size() == 0; or

    size == 0;

    where size() is determined by the number of elements...
  7. Replies
    1
    Views
    101

    Updating a specific value in a linked list

    I create and populate someLinkedList with '*' characters as soon as a gameLinkedList object is created, so my class is something like


    private int size;
    public class gameLinkedList{
    private...
  8. Replies
    2
    Views
    160

    Re: Populating a LinkedList in java

    Thanks
  9. Replies
    2
    Views
    160

    Populating a LinkedList in java

    I have a LinkedList class that implements a game
    I want to create a list and populate it when a LinkedList object is created
    The game constructor takes a word

    My general/basic question is;
    How...
  10. Implementing own generic hash table contains method

    Hi Sorry for the confusion,
    the contains method is inside a class which is basically a hash table that sorts objects of <T,N> types which are in the twos<T,N> interface.


    public class twos<T,N>...
  11. Replies
    1
    Views
    162

    implementing generic compareTo()

    I have a generic class that contains a compareTo() method
    I'm getting an error on the method it'self that goes something like;

    Name clash: the method compareTo(T) of type twos<T N> has the same...
  12. Replies
    5
    Views
    213

    Re: Method returns empty stack when called

    I want it to return a copy of the this object but with the contents in reverse order. I want to link this to that after all the items from this have been popped, but I can't find the right keyword.
  13. Replies
    5
    Views
    213

    Method returns empty stack when called

    I have a stack method that's supposed to return a reversed *copy* of the this object. I need this object to link to that object. Thanks.

    To clarify, the that stack object that's created pushes...
  14. Replies
    3
    Views
    222

    My reverse method wont work

    This method is supposed to reverse a stack by making a new stack and pushing popped items from this stack to that and then returning the reverted stack. When I run some tests, it returns an empty...
  15. Replies
    1
    Views
    207

    Some of my methods don't run properly

    The reverse stack method in my LinkedStack class is supposed to return a reversed copy of the stack object that uses it. So when I populate somestack with strings as below, and do...
  16. Replies
    2
    Views
    166

    Re: Problem with code

    Thanks for that
  17. Replies
    2
    Views
    166

    Problem with code

    I have a generic LinkedStack with a Node class and a number of methods
    LinkedStack<T>{
    class Node<T>{}//
    void push(T item){}//
    void push(FancyStack<T> s){}//
    T pop(){}
    boolean...
  18. Replies
    2
    Views
    280

    Poll: Re: Referencing libraries in java

    Solved the problem.
    I had to create a class in the (default package) that came with the jar file. All's well
  19. Replies
    2
    Views
    280

    Poll: Referencing libraries in java

    I have a project folder, under which I have a package named programs.

    Suppose I have a jar file named vivir.jar that contains files that I need to use in some class in my programs package.

    I...
Results 1 to 19 of 19