l have this assignment to do:
Synchronize access to the instance variable, accBalance. Because accBalance is a double and not an object, it cannot be used as the monitor. Use synchronized methods or synchronized blocks of code, as appropriate. Simultaniously test two threads. Because the threads can complete too quickly to determine if they are interfering with each other, delay the adding of a deposit by inserting the following code...
User Profile
Collapse
-
Synchronising threads
-
l think you need check the spelling of java keyword that is "if" , it must have small letter "i" not capital letter .l think this help . -
Object oriented design for more than one class . Java
Hi .l am real new to programming . l have a problem with my code .l have tried to translate the following programming problem into java language but the problem l have is that l cannot create the subclass that is Cube class.Here is the programming problem:Design a class called Square with a value for the side of the square and validate that value and calculate the area of the square .The child class Cube will use the existing methods of the parent... -
coding with java
hi everyone .l am a new programmer. l realy need the java code to solve the following problem :Design a class that will recieve an array of 30 mathematics exam ,calculate the class average from the score and display the class average to the screen.
Thanks in advance
Abraham Nkomo
No activity results to display
Show More
Leave a comment: