Search:

Type: Posts; User: D.K

Page 1 of 2 1 2

Search: Search took 0.18 seconds.

  1. Thread: launch error

    by D.K
    Replies
    2
    Views
    1,061

    Re: launch error

    It means there is no main class to run the program, you need to set a main class before running it.
  2. Replies
    3
    Views
    985

    Re: Why won't my program run?

    Not going to bother tracing that since it's not embedded. General tip for fixing the problem, identify whether a run-time error is occurring or a syntax error. If it's a run-time then check things...
  3. Replies
    10
    Views
    1,261

    Re: Java Code Not Doing What I Want It To Do!

    Here's a tip I always use while debugging:

    *) Identify the type of error (syntax, logical or run-time).

    Once you have identified the type or error it'll be much easier to find what's not...
  4. Re: I am a new Java user, I can't use "javac" in my computer

    You'll need to get a Java Development Kit (JDK).
  5. Replies
    9
    Views
    1,495

    Re: Java while loops and switches

    Opps, forgot that was an infinite loop XD.

    Edit: if you add num++; in the while loop that will fix the infinite loop (increments num by 1 each time).
  6. Replies
    9
    Views
    1,495

    Re: Java while loops and switches

    while (condition) {
    statement;
    }


    Basically if the condition is true then the statements are executed until the condition becomes false.

    Example:
  7. Replies
    3
    Views
    1,140

    Re: Help with a calculator

    Declare that answer equals to 0.
  8. Replies
    5
    Views
    1,341

    Re: Calculate the average

    Change the integers & doubles to floats and let the scanner read it as a float [scan.nextFloat();].
    Note: make sure you import the scanner class (java.util.Scanner;).
  9. Replies
    3
    Views
    1,135

    Re: Help to remove error ...

    Your code is very messy, over-complicated and full of mistakes + junk code. Try re-writing a simplified version of the code.
  10. Replies
    4
    Views
    3,537

    Re: Help Getting Started With Java (tutorial)

    Thanks for the feedback.


    Update: made it easier to read + added for loop.
  11. Thread: is this right?

    by D.K
    Replies
    6
    Views
    928

    Re: is this right?

    http://www.javaprogrammingforums.com/java-code-snippets-tutorials/33239-help-getting-started-java-tutorial.html#post127708
    This might help.
  12. Replies
    4
    Views
    3,537

    Re: Help Getting Started With Java (tutorial)

    I'll work on this thread when I open my laptop.
  13. Replies
    4
    Views
    3,537

    Help Getting Started With Java (tutorial)

    I wrote the following tutorial for my friend and decided I'd post it on here to help out some people :).

    Some basics that aren't covered in this tutorial:
    *applets
    *exceptions
    *cases
    and some...
  14. Replies
    3
    Views
    1,314

    Re: Help with getting a loop to work

    Make a while loop with an inner if statement and add a sentinel value to exit the loop.
  15. Thread: is this right?

    by D.K
    Replies
    6
    Views
    928

    Re: is this right?

    No.

    It is correct if the last brace is the closing of the class block.
  16. Re: Create a java program to determine what integers of two, three, and four digits are equal to the sum of the cubes of their digits?

    You have the wrong formula.
    Hint: you need to use the math class.
    Another hint: Math.pow(num1, 3) //example
  17. Thread: Small problem

    by D.K
    Replies
    4
    Views
    968

    [SOLVED] Re: Small problem

    Hint: unicode.
  18. Thread: Hi :3

    by D.K
    Replies
    2
    Views
    758

    Re: Hi :3

    I'm not that new to Java, I've been coding for about a year before attending AP. Escape sequences aren't that amusing :p.
  19. Thread: Java tuterial..!

    by D.K
    Replies
    2
    Views
    1,180

    Re: Java tuterial..!

    What you need is an English tutorial.
  20. Thread: Average Won't Work

    by D.K
    Replies
    5
    Views
    872

    Re: Average Won't Work

    Alright.
  21. Thread: Hi :3

    by D.K
    Replies
    2
    Views
    758

    Hi :3

    Hello everyone! I'm currently taking Java programming as an AP Computer course so I decided to join this forum :). Looking forward to meeting you all.
  22. Replies
    17
    Views
    28,097

    Sticky: Re: The Problem with Spoon-feeding

    Well, some people just want to be spoon fed...
  23. Replies
    2
    Views
    1,155

    Re: how to study java the right ways ?

    I have an e-book version of my Java Programming book for my AP Computer class, if you're interested drop me a private message (free).
  24. Replies
    9
    Views
    1,681

    Re: If Else loop or do while loop

    Umm you could use a while loop inside a while loop, so basically if the user enters the loop it would execute the statements inside and then move onto the inner loop (which would also execute their...
  25. Replies
    4
    Views
    964

    Re: I need help understanding programming (Noob)

    JavaScript is for browsers while Java is an object-oriented language that is compiled (to create an executable version) and later executed on the main memory.
Results 1 to 25 of 27
Page 1 of 2 1 2