Search:

Type: Posts; User: Truck35

Search: Search took 0.08 seconds.

  1. Re: I do not understand how multi-thread part of program works

    Thanks for your reply.

    Truck35
  2. I do not understand how multi-thread part of program works

    I am working on this project in my java text book and I am unable to figure out how the multi thread part of the program works. The program that I am working on is a traffic light simulation...
  3. Dont understand objects used with FileInputStream and FileOutputStream constructor

    In the code below, both fin and fout variables are set to null. Why is this. In the second and third "try block" fin and fout are compared to "null". Why is this? Please help me with my question....
  4. Replies
    1
    Views
    1,143

    Problem understanding read method.

    I am confused. In the program below, the read method converts the fin object into what appears to characters. That's why the variable "i" is converted into the character type. I thought the...
  5. Thread: Acess methods

    by Truck35
    Replies
    3
    Views
    1,489

    Re: Acess methods

    Thanks for the reply. Your reply was awsome.

    Bless,
    Truck
  6. Thread: Acess methods

    by Truck35
    Replies
    3
    Views
    1,489

    Acess methods

    could some one please explain to me in laymen terms why access methods are used. I know how to use methods but, I am confused about why access methods are used. I put an example from my book that...
  7. Replies
    1
    Views
    1,987

    Help understanding Command-Line Arguments

    I am having trouble understanding what exactly Command-Line Arguments are. To my understanding they are arrays of the type String that is passed to the main method. In the program below,...
  8. Replies
    6
    Views
    1,304

    Re: Problems with my prime finder program

    I
  9. Replies
    6
    Views
    1,304

    Re: Problems with my prime finder program

    /*I got the following error message "The method main cannot be declared static,
    * static methods can only be declared in static or top level type".*/
    public static void main(String args[]) ...
  10. Replies
    6
    Views
    1,304

    Problems with my prime finder program

    I am having trouble with my prime finder program. This program allows the user to enter a number than finds the prime of that number. Example, if you enter five it will find the 5th prime (11). I...
  11. Replies
    4
    Views
    1,833

    Re: Problem with my prime number finder program

    I am still trying to get this program to work. I checked all my brackets and they seem to be correct. I am using an object for my method call and I am still getting errors. according to what I...
  12. Replies
    4
    Views
    1,833

    Re: Problem with my prime number finder program

    I put the error message that I received when trying to compile the program as comments above each piece of code that is giving me problems. One is above my final print statement and one is above the...
  13. Replies
    4
    Views
    1,833

    Problem with my prime number finder program

    I am working on a program that finds a prime number that the user has entered. For example, if the user wants to find the 101st prime number, the program will calculate numbers and determine if they...
  14. Replies
    3
    Views
    1,222

    Having trouble with for loop statement.

    I am doing an exercise in a book and there is a part of the code that I don't understand. To my understanding, a for loop always has three parts, initialization, condition, and iteration. Yet, in the...
  15. Thread: Hello

    by Truck35
    Replies
    1
    Views
    1,054

    Hello

    My name is Kevin and I am a begginer in the Java programming language.

    Take Care,
    Bless.
    Kevin
Results 1 to 15 of 15