Search:

Type: Posts; User: pbrockway2

Page 1 of 20 1 2 3 4

Search: Search took 0.11 seconds.

  1. Replies
    3
    Views
    1,150

    Re: Months of the year []

    Why use a loop? You are attempting to do a single thing (display the month) not trying to do something 12 times. Try a single System.out.printf() statement to print the thing you want.

    (By the...
  2. Re: Need help with coding.. I'm a beginner please help asap!

    The OP posted a request for someone to do his or her homework and got no takers. That was over 2 months ago and they haven't been heard from since. Closing the thread.
  3. Re: Converting from formulas to java code Math.pow

    In both cases there are two '^' operators in the numerator (top) of the fraction, so I would expect two uses of Math.pow in each numerator. But you only have one.

    Break the expressions up into...
  4. Re: For loops to figure a table of round robin, 8 & 16 teams

    It's quite possible I'm missing something, but "Team 1 plays t2", then later "Team 3 plays t1...". Isn't team 1 overbooked? Surely what matters is who plays whom in what round.

    Coming up with a...
  5. Re: help with abstract and nonabstract action listner

    Did you check the ActionListener documentation? And, if so, were you able to locate the full name of ActionEvent class (including the package of which it's part)?
  6. Re: help with abstract and nonabstract action listner

    The error message I see when I attempt to compile your code is



    FrameAndButton.java:10: error: FrameAndButton is not abstract and does not override abstract method actionPerformed(ActionEvent)...
  7. Replies
    14
    Views
    1,198

    Re: Cant Complete the Program

    Fair enough. But what happens if you insert the missing ')' just before the end of the statement? Note that the statement ends with the very final ';' character.
  8. Replies
    14
    Views
    1,198

    Re: Cant Complete the Program

    I'm sorry about the misunderstanding: what I meant to suggest is that it is us (the people who are reading your post) who tend to be lazy. When you indicate which line is 118 or whatever, people...
  9. Re: What Program Do You Use To Code For Java Language?

    Minor point: I didn't think Eclipse offer a JDK. At least that what I take from the Eclipsepedia Installation page. With Eclipse I have always used Oracle's (for no particular reason).

    JetBrains...
  10. Replies
    14
    Views
    1,198

    Re: Cant Complete the Program

    At the end of the code you posted you have



    car.setOnKeyPressed(e ->

    {
    switch ( e.getCode())
    {
    case UP:
  11. Re: Find the the original indices of the sorted aray

    The problem with a map like this is that the same value can be repeated as a value in the array, but not as the key of a map.

    Attempting to find the original index positions *after* the sort has...
  12. Replies
    6
    Views
    1,647

    Re: Java and ssh questions from a newbie

    In case you haven't seen it, check out Oracle's Packaging Programs in JAR Files tutorial. The links "Working with Manifest Files: The Basics" -> "Adding Classes to the JAR File's Classpath" are also...
  13. Thread: Hello

    by pbrockway2
    Replies
    1
    Views
    653

    Re: Hello

    Hi airgmbop, welcome to the forums.
  14. Replies
    2
    Views
    1,360

    Re: Unable to sort words in dictionary app

    It can be very difficult (for you and for us!) to diagnose a problem when confronted with a mountain of code.

    The tried and true way of dealing with this is to construct a small simple example of...
  15. Thread: hello :)

    by pbrockway2
    Replies
    1
    Views
    729

    Re: hello :)

    Hi wei, and welcome!
  16. Re: How do I do this code? please help with full code

    Please don't hijack other threads. Discussion for this is better at http://www.javaprogrammingforums.com/whats-wrong-my-code/40899-java-code-math-problem-find-missing-paranthesis.html

    Similar...
  17. Re: How do I do this code? please help with full code

    One step at a time!



    public class Question
    {
    // Constant for the number of questions
    public final int NUM_ANSWERS = 10;

    // The trivia question
  18. Replies
    6
    Views
    763

    Re: What is the problem with eclipse here?

    Try posting the text of any error message you are asking about. And say what you that results in the message being displayed.
  19. Re: How do I do this code? please help with full code

    It would be better if you attempted writing this class yourself.

    Post what you come up with, including any compiler messages that you can't understand.
  20. Replies
    2
    Views
    783

    Re: Hello to the whole community.

    Hi rehankhan36, welcome to the forums!
  21. Thread: Hello :)

    by pbrockway2
    Replies
    1
    Views
    726

    Re: Hello :)

    Hi SoutheyJ, and welcome!
  22. Replies
    3
    Views
    926

    Re: Application Updates

    Warning: software I write is for my own usage, but these are my thoughts...

    JavaDB stores data in a folder that is referenced as a url by your program. It is quite distinct from the .jar file...
  23. Re: Advice on how to structure co-dependent objects

    @planetHollywood

    The question asked was about objects where each object's behaviour might depend on the state of the other objects. And the OP asked whether it was better to pass the other...
  24. Re: Virtual Keyboard in Java - Variable value enhancement button

    I'm sorry, but I don't really see how "Generics" is an answer to the question the OP asked: "Can anybody tell me (and where) should i put on the mode button to set the mode variable?"

    In fact,...
  25. Re: Help with this questions! if anyone knows the answer

    old thread closed
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4