Thanks for your reply.
Truck35
Type: Posts; User: Truck35
Thanks for your reply.
Truck35
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...
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....
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...
Thanks for the reply. Your reply was awsome.
Bless,
Truck
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...
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,...
/*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[]) ...
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...
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...
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...
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...
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...
My name is Kevin and I am a begginer in the Java programming language.
Take Care,
Bless.
Kevin