Search:

Type: Posts; User: LDM91

Search: Search took 0.11 seconds.

  1. Replies
    4
    Views
    1,880

    Re: I/O and byte arrays.

    Solved the problem.
  2. Replies
    4
    Views
    1,880

    Re: I/O and byte arrays.

    Solved the problem.
  3. Replies
    4
    Views
    1,880

    I/O and byte arrays.

    Solved the problem.
  4. Replies
    3
    Views
    1,789

    Re: DOM XML parser question

    Thanks for the link, yes it does. I've used DOM parsing in PHP before but was a bit confused because in Java it seemed throw in another step which I didn't quite understand. Turns out I...
  5. Replies
    3
    Views
    1,789

    [SOLVED] DOM XML parser question

    Hi I'm using the DOM XML parser classes and wandered if this is a correct perception:



    Element eElement = (Element) node;
    NodeList feedlist = eElement.getElementsByTagName("url");
    Element...
  6. Replies
    4
    Views
    4,568

    Re: UML Class Diagram

    Ah I understand what you mean the problem is exchangerates must know the currentcurrency value to retrieve the info as I don't want to achieve the currency info for all countries as they all have...
  7. Replies
    4
    Views
    4,568

    Re: UML Class Diagram

    Thank you for your reply. By encapsulating exchangerates in converter do you just mean effectively merging the two classes? My understanding is that it is best to have each class do one job only. I...
  8. Re: Abstract methods. What are they for? And when it's necessary to use them?

    Thanks for clearing up what I made a terrible mess of trying to say haha!
  9. Re: Abstract methods. What are they for? And when it's necessary to use them?

    I think this will clear things up for you; abstract methods are methods that are not implemented. In order to actually use these methods you must override them in the child classes to implement...
  10. Re: Abstract methods. What are they for? And when it's necessary to use them?

    Hmm the only example I can provide is a number guessing game I made. I had guessinggame as an abstract classwhich normalgame and testgame extended. I set guessinggame to abstract because I didn't...
  11. Replies
    1
    Views
    3,185

    Re: connect java to a database

    I was looking into using a database with one of my programs myself, and I believe you can utilise the JDBC driver.

    JDBC 101 - Connect to a SQL database with JDBC | Java JDBC connection example |...
  12. Replies
    4
    Views
    4,568

    UML Class Diagram

    Hi there, I'm working on a currency converter which uses XML to dynamically retrieve exchange rates. Below is my class diagram so far:

    http://img156.imageshack.us/img156/1065/umlclassdiagram.jpg
    ...
  13. Replies
    4
    Views
    1,530

    Re: A few opinions on a project desired

    Thank you for your reply. I did actually do something like what you suggested for one of my latest projects. It was a Software Design assignment project so very focused on the documentation, I was...
  14. Replies
    4
    Views
    1,530

    Re: A few opinions on a project desired

    I guess you're right on the database point, I'm not that experienced with using SQL (I've only done more of a general module on relational databases and normalisation so far). I'm just trying to...
  15. Replies
    4
    Views
    1,530

    A few opinions on a project desired

    Hi there guys. I have secured an interview for an industrial placement and they have asked me to bring a few examples of my work, the problem is not much of the stuff we've done for assignments is...
  16. Replies
    5
    Views
    1,686

    Re: Polymorphism issue

    Thank you for very much! The concrete no parameter method and abstract method with the parameter works perfectly. Sorry if the problem was difficult to understand I didn't quite understand the...
  17. Replies
    5
    Views
    1,686

    Re: Polymorphism issue

    Thought I'd update you on a couple of changes I made. In my parent class I adjusted the method I wanted to overload in the child classes to abstract with no parameters. This meant I could simply...
  18. Replies
    5
    Views
    1,686

    Re: Polymorphism issue

    Thank you for your reply. That very nearly was what I was trying to convey, I believe I may have been going about it wrong now. The following is what I wish to achieve:

    public abstract class...
  19. Replies
    5
    Views
    1,686

    Polymorphism issue

    Hey there. I'm making a game that utilises two different modes which inherit from an abstract class. The basic aim of what I'm trying to achieve is to use polymorphism so that depending on the mode...
  20. Replies
    3
    Views
    3,524

    Re: Encapsulation question regarding ArrayLists

    I think you have understood what I was trying to say, but retrieving the objects that way would still require the ArrayList to be public to be read from would it not?

    Basically I need public...
  21. Replies
    3
    Views
    3,524

    Encapsulation question regarding ArrayLists

    Hi there. I've been working on a side project outside of class (I'm a Software Engineering student at Uni) which is really just a simple Banking system to help my understanding of Java. Basically the...
Results 1 to 21 of 21