Search:

Type: Posts; User: OA-OD-JD1

Page 1 of 3 1 2 3

Search: Search took 0.09 seconds.

  1. Replies
    4
    Views
    940

    Re: New member of the forum

    Welcome Claretha.
  2. Replies
    70
    Views
    7,965

    Re: JD1's Personal Development Blog

    I've decided to continue the blog here (now that I've received blogging permissions).
  3. Replies
    70
    Views
    7,965

    Re: JD1's Personal Development Blog

    This blog has been continued over at Java Development Forums and in my JPF Blog.

    Harvey's Java Blog
    JD1's Personal Development Blog
  4. Re: 2nd week with Java. Help with a few basic syntax errors?

    Hi,


    public static void main(String[] s);


    Since this is your method, you're going to need curly braces afterwards to encase the rest of your code from within that method.


    public static...
  5. Replies
    3
    Views
    1,649

    My New Website | Feedback Please!

    Howdy,

    When I'm bored, I do this thing where I go into localhost and start creating forums. Inspired by JPF, I've created my own Java-related forum, JavaDevelopmentForums. It only went live today,...
  6. Replies
    10
    Views
    1,913

    Re: Overzealous Commenting?

    I suppose that would be a good way to organise your head. If you're a visual learner, you'll be able to see exactly what needs to be done and where.
  7. Replies
    2
    Views
    1,227

    Re: Introducing...ME!

    Welcome aboard, mjr. I'm new also, but already I've learned a lot. You'll enjoy it here.
  8. Replies
    10
    Views
    1,913

    Re: Overzealous Commenting?

    So you write the comments before actual Java code? I've never heard of that before. Does it work well?
  9. Replies
    70
    Views
    7,965

    Summing The Elements of An Array

    Say we have an array with ten indices. Below is how we can calculate the sum of these indices.

    class Class1{
    public static void main(String args[]){
    int[] array1 = {1,2,3,4,5,6,7,8,9,10};...
  10. Replies
    6
    Views
    1,058

    Re: Hi to everyone

    Not sure what the likelihood of you finding someone like this is, but by all means look around. You can get all the help you need here.
  11. Replies
    70
    Views
    7,965

    Re: JD1's Personal Development Blog

    Thanks mate. I'll be sure to take a look some time.
  12. Replies
    70
    Views
    7,965

    Re: JD1's Personal Development Blog

    Okay. In other languages, I've been used to doing it the way I orginally did, but since what you mentioned is standard Sun convention, I'll be sure to stick to that in the future.
  13. Replies
    70
    Views
    7,965

    Re: JD1's Personal Development Blog

    Understood. Can you tell me why you put the square brackets after the data type instead of the array name?
  14. Replies
    1
    Views
    1,098

    Re: Problems with my code

    In future, please use the Java highlighting code.




    Be sure to post in the right section also.
  15. Replies
    70
    Views
    7,965

    Re: JD1's Personal Development Blog

    And I'm glad you're providing these tips. This is the sort of thing I need. Also, with your example there, are you referring to an array initialiser with no indexes?
  16. Replies
    70
    Views
    7,965

    Arrays

    Arrays are used to store many values under the one variable, so to speak. You can initialise an array the long and drawn out way by manually assigning each index a value or you can implement an array...
  17. Replies
    70
    Views
    7,965

    Re: JD1's Personal Development Blog

    Alright, I'll keep that in mind. Once again, I'd like to thank you for all your help today. I really appreciate it! :-*
  18. Replies
    70
    Views
    7,965

    Re: JD1's Personal Development Blog

    Hi,

    Some of that is still new to me. I still can't get my head around any of what you've written (since you're using alternative code). It's difficult for me to relate that back to my problem, let...
  19. Replies
    70
    Views
    7,965

    Random Number Generator

    Random numbers can be used in Java. Here's a small random number generator and how it works.

    import java.util.Random;
    class Class1{
    public static void main(String args[]){
    Random dice = new...
  20. Replies
    70
    Views
    7,965

    Math Class Methods

    There are many built in methods we can use to conduct mathematical operations to numbers. Here are some of them.

    class Class1{
    public static void main(String args[]){
    //How far number is from...
  21. Replies
    70
    Views
    7,965

    Do While Loop

    We use the Do While Loop when we want to run a set of instructions before testing to see if a condition is true. The difference between a Do While Loop and a While Loop is that the While Loop tests...
  22. Replies
    70
    Views
    7,965

    Re: JD1's Personal Development Blog

    If I go back to my last successfully working averaging calculator, Mr.777, I have two questions.

    import java.util.Scanner;
    class Class1{
    public static void main(String args[]){
    int numGrades...
  23. Replies
    70
    Views
    7,965

    Re: JD1's Personal Development Blog

    Still not sure how to do that. I tried something just now but that didn't work either. I'm kind of more guessing where things go with this one. Can't quite get my head around the best way to do this.
  24. Replies
    70
    Views
    7,965

    Compound Interest Calculator

    Compound interest can be calculated with the following formula.

    A = Amount
    P = Principal
    R = Rate
    n = Years

    A=P(1+R)^n

    We can calculate the amount in Java as shown below. We currently...
  25. Replies
    70
    Views
    7,965

    For Loops

    The For Loop is probably the most common loop used in any programming language. Here's how it works in Java.


    class Class1{
    public static void main(String args[]){
    for(int counter=1;...
Results 1 to 25 of 69
Page 1 of 3 1 2 3