Search:

Type: Posts; User: JavaDaveUK

Search: Search took 0.10 seconds.

  1. Replies
    5
    Views
    10,526

    Re: Char cannot be dereferenced!! Please help

    it should be:


    aHouse.getPerson().equals("Y")


    if getPerson() returns a String you do not need to call toString().

    also your first call to aHouse.getPerson() seems pointless to me, as you...
  2. Replies
    2
    Views
    3,057

    Re: Few very basic Java questions.

    The .* wildcard on the import statement will import all classes within the package, so all classes within java.awt package in your case, however this does not extend to subpackages so classes...
  3. Replies
    3
    Views
    2,361

    Re: Java and XML

    You need to use an XML Parser to parse the file and providing the XML is 'well-formed' you will be able to navigate the XML structure.
    I would recommend you use a DOM parser , this will give you...
  4. [SOLVED] Re: Problem accessing specific data in an array and getting it to return properly

    I think it is important you understand what you did wrong in your code, effectively you were looping through the whole list and not checking to see whether the Product had been matched, once the...
  5. Re: Best way to automatically login user from a customer's web site.

    Sounds like you want John Doe to automatically sign in to the site he is being redirected to without being challenged for his user credentials again.

    To do this securely you need a Single Sign-on...
  6. Replies
    6
    Views
    3,228

    Re: Calling method from .class file

    Yes, what you want is a Java decompiler.
    There are quite a few available if you search for them on the internet.
    here is one: "http://java.decompiler.free.fr"

    There are some limitations, so you...
  7. Replies
    3
    Views
    1,459

    Re: Help, please

    I am currently looking for work, I have also done some work with Liferay and Jboss Portal in past.
    Depending on your requirements I may be interested, I am based in London area UK, I would also be...
  8. Re: Help With conecting my GUI to my server using netbeans

    You seem to have only posted the server code?
    It is a bit difficult to give any advice when only one side of the coin is shown!

    Incidentally this is posted in paid work, are you actually...
  9. Replies
    6
    Views
    3,228

    Re: Calling method from .class file

    I think you need to understand how the compiler works, it creates .class files from source files .java, you actually cannot call a method from a .java file, but you can from the compiled file .class....
  10. Replies
    2
    Views
    1,539

    Re: simple question...

    well you need to assign the object to a variable for starters, so you can access it.

    for example:



    public static void main(String[] args) {
    MyClass obj = new MyClass();
    }
  11. Replies
    2
    Views
    2,417

    Re: Connectivity problem:MySQL and Java

    Well obviously an Exception is being thrown so it will display "Cannot connect to server".
    presumably not "Cannot connect to database" as you specified.

    As you do not seem to be printing out the...
  12. Re: Having trouble with an if statement. please help!!

    sorry my mistake, remove the else at the end, so the return is guaranteed.

    ie.


    if ((aNumber > 0) && (aNumber < 5))
    {
    ... set diff. settings based on 1 to 4
    ..etc...
  13. Replies
    7
    Views
    1,901

    Re: Dying PC, I might need someones help

    clicking sound inside the box could also indicate a working hard disk, and that is the most likely explanation.
    I assume you are running a Windows OS (XP,Vista,7 etc..), how much RAM do you have and...
  14. Re: Having trouble with an if statement. please help!!

    are you sure you have the else from the first if, not the if that results in the high setting.

    i.e.


    if ((aNumber > 0) && (aNumber < 5))
    {
    ... set diff. settings based on 1 to 4...
  15. Re: Having trouble with an if statement. please help!!

    How about this!



    public String whatSetting(int aNumber)
    {
    if ((aNumber > 0) && (aNumber < 5))
    {
    this.setting = aNumber;
    if...
  16. Re: How to execute a Java program independent of Netbeans.

    Also make sure ExecuteThis class is on the classpath, and fully qualify the package/classname.
    using the default package is generally not a good idea.

    eg. if ExecuteThis class resided in package...
  17. Re: Blackjack program runs excrutiatingly slow.

    NULL Exceptions are caused by attempting to use an Object that has a value of NULL, i.e. NOT instantiated.
    Attempting to call a method on such an object would cause a NullPointerException to be...
  18. Re: Need Java Programmer in London or South East

    Hi,

    Are you still looking for a Java Developer, if so I am interested , I am an experienced Java/J2EE Developer (10 years experience in Java/J2EE, 20 years as a developer). Let me know what the...
Results 1 to 18 of 19