Search:

Type: Posts; User: lodenrogue

Search: Search took 0.07 seconds.

  1. Re: Backing up postgres database for use in java program eclipse

    Are you trying to migrate the database locally? You just need to dump the database and feed it back into your new instance. This is independent from Java/Eclipse.

    Here's more info:...
  2. Replies
    2
    Views
    614

    Re: Ubale to see sysout output in console

    I ran your code and that line prints out for me.
  3. Re: I get an error when the computer tries to read the String in a loop

    I see the issue you're having. This is because input.nextInt() does not read the newline character generated when you hit the return key. You can fix this by changing the last line to:


    ...
  4. Re: Reverse roles of client/server communication

    If I understand your problem statement correctly you probably need something like the observer pattern.
    https://sourcemaking.com/design_patterns/observer

    Basically you would have the client PCs...
  5. Re: How to make java software fully internet portable?

    You can try to attach a bash script along with the zip folder of your download. The script can have the necessary commands to install Java on your user's machine. You can call the script something...
  6. Replies
    1
    Views
    678

    Re: Decimal Places

    You can do a few things for a Double d = 5.09876:

    1. Use String.format

    String formatted = String.format("%.2f", d);
    System.out.println(formatted);

    2. Use...
  7. Replies
    2
    Views
    1,244

    Re: String actual and next char

    You could do something like this:



    String s = "abcde";
    CharacterIterator it = new StringCharacterIterator(s);

    while(it.current() != CharacterIterator.DONE) {
    char current =...
  8. Replies
    1
    Views
    628

    Re: Help with Java Output Question!

    Recursive methods get placed on the stack and it helps to think of them like a stack data structure.

    The key to understanding why it's printing after "wo" is in the following lines:
    ...
  9. Replies
    1
    Views
    633

    Re: Java 1.8.0_171 supports Oracle 19c?

    Java and Oracle, although currently owned by the same company, are two different products and don't have a dependency on each other. I think what you need to research is if your current libraries are...
  10. Re: Is it object oriented programming safe for website security ?

    Object oriented programming has nothing to do with security. It's a programming paradigm; a way to organize and communicate about the code. Security can be implemented using a number of languages and...
  11. Replies
    1
    Views
    775

    Re: Quitting the browser

    Unfortunately it's not possible using the Desktop API since there's no reference object returned from the desktop.browse(...) method.

    A few ideas:

    1. You can try to create and kill the browser...
  12. Thread: Methods

    by lodenrogue
    Replies
    1
    Views
    1,257

    Re: Methods

    First two things I notice in your code:

    public void actionPerformed(ActionEvent e)
    {
    //getSecond(6);
    displayTable.setText("Button Pressed");
    }

    1. getSecond(6) is commented...
Results 1 to 12 of 12