- December 27th, 2009
-
juvymendoza has posted a new entry on: Programming Tutorial
In creating a solution in the problem solving process, there is a need for representing higher level data from basic information and structures available at the machine level. There is also a need for…
Read More »
-
juvymendoza has posted a new entry on: Programming Tutorial
Recall that there are two ways of creating threads. We can either extend the Thread class or implement the Runnable interface. In whichever technique used, we customize its functionality by overriding…
Read More »
-
juvymendoza has posted a new entry on: Programming Tutorial
In this section, you'll learn about the basic methods used to allow threads to communicate with other concurrently running threads.Methods for Interthread Communicationpublic final void wait()Causes t…
Read More »
-
juvymendoza has posted a new entry on: Programming Tutorial
The following example is an implementation of the Producer-Consumer problem. A class which provides the methods for generating and consuming an integer value is separated from the Producer and the Con…
Read More »
-
juvymendoza has posted a new entry on: Programming Tutorial
Here is still another version of the preceding code. Again, the print method here of the TwoStrings class is now synchronized. But, instead of applying the synchronized keyword to a method, it is appl…
Read More »
-
juvymendoza has posted a new entry on: Programming Tutorial
To assure that only one thread gets to access a particular method, Java allows the locking of an object including its methods with the use of monitors. The object enters the implicit monitor when the…
Read More »
-
juvymendoza has posted a new entry on: Programming Tutorial
Now, these are some of the methods provided in the Thread class.Thread Methodspublic static Thread currentThread()Returns a reference to the thread that is currently running.public final String getNam…
Read More »
- December 25th, 2009
-
juvymendoza has posted a new entry on: Programming Tutorial
So far, you've seen examples of threads that are running concurrently but are independent of each other. That is, threads run at their own pace without concern for the status and activities of the oth…
Read More »
-
juvymendoza has posted a new entry on: Lesnar vs Carwin UFC 106
The schedule of Robert Stieglitz vs Edison Miranda boxing fight is on January 9, 2010. The venue of Robert Stieglitz vs Edison Miranda boxing fight is in Bordelandhalle, Magdeburg, Sachsen-Anhalt, Ger…
Read More »
-
juvymendoza has posted a new entry on: UFC Live Streaming
The schedule of Robert Stieglitz vs Edison Miranda boxing fight is on January 9, 2010. The venue of Robert Stieglitz vs Edison Miranda boxing fight is in Bordelandhalle, Magdeburg, Sachsen-Anhalt, Ger…
Read More »
-
juvymendoza has posted a new entry on: Pacquiao vs Cotto live Boxing
The schedule of Robert Stieglitz vs Edison Miranda boxing fight is on January 9, 2010. The venue of Robert Stieglitz vs Edison Miranda boxing fight is in Bordelandhalle, Magdeburg, Sachsen-Anhalt, Ger…
Read More »
-
juvymendoza has posted a new entry on: Pacquiao vs Mayweather Jr
The schedule of Robert Stieglitz vs Edison Miranda boxing fight is on January 9, 2010. The venue of Robert Stieglitz vs Edison Miranda boxing fight is in Bordelandhalle, Magdeburg, Sachsen-Anhalt, Ger…
Read More »
-
juvymendoza has posted a new entry on: UFC - Boxing Fight Events
The schedule of Robert Stieglitz vs Edison Miranda boxing fight is on January 9, 2010. The venue of Robert Stieglitz vs Edison Miranda boxing fight is in Bordelandhalle, Magdeburg, Sachsen-Anhalt, Ger…
Read More »
-
juvymendoza has posted a new entry on: Pinoy Portals and News
The schedule of Robert Stieglitz vs Edison Miranda boxing fight is on January 9, 2010. The venue of Robert Stieglitz vs Edison Miranda boxing fight is in Bordelandhalle, Magdeburg, Sachsen-Anhalt, Ger…
Read More »
- December 24th, 2009
-
juvymendoza has posted a new entry on: Programming Tutorial
Of the two ways of creating threads, choosing between these two is a matter of taste. Implementing the Runnable interface may take more work since we still have to declare a Thread object and call the…
Read More »
-
juvymendoza has posted a new entry on: Programming Tutorial
Another way of creating user-defined threads is to implement the Runnable interface. The only method that the Runnable interface requires you to implement is the run method. Think of the run method as…
Read More »
-
juvymendoza has posted a new entry on: Programming Tutorial
Threads can either be created by extending the Thread class or by implementing the Runnable interface.Extending the Thread ClassThe next example is a user-defined Thread class that prints the name of…
Read More »
-
juvymendoza has posted a new entry on: Programming Tutorial
Your first thread example is a simple counter.import javax.swing.*;import java.awt.*;class CountDownGUI extends JFrame {JLabel label;CountDownGUI(String title) {super(title);label = new JLabel("Start…
Read More »
-
juvymendoza has posted a new entry on: Pinoy Portals and News
UFC 112 Vitor Belfort vs Anderson Silva is an upcoming mixed martial arts event to be held by the Ultimate Fighting Championship in Abu Dhabi, United Arab Emirates.[on April 10, 2010.A Middleweight Ch…
Read More »
-
juvymendoza has posted a new entry on: UFC Live Streaming
UFC 112 Vitor Belfort vs Anderson Silva is an upcoming mixed martial arts event to be held by the Ultimate Fighting Championship in Abu Dhabi, United Arab Emirates.[on April 10, 2010.A Middleweight Ch…
Read More »
-
juvymendoza has posted a new entry on: UFC - Boxing Fight Events
UFC 112 Vitor Belfort vs Anderson Silva is an upcoming mixed martial arts event to be held by the Ultimate Fighting Championship in Abu Dhabi, United Arab Emirates.[on April 10, 2010.A Middleweight Ch…
Read More »
-
juvymendoza has posted a new entry on: Pacquiao vs Mayweather Jr
UFC 112 Vitor Belfort vs Anderson Silva is an upcoming mixed martial arts event to be held by the Ultimate Fighting Championship in Abu Dhabi, United Arab Emirates.[on April 10, 2010.A Middleweight Ch…
Read More »
-
juvymendoza has posted a new entry on: Pacquiao vs Cotto live Boxing
UFC 112 Vitor Belfort vs Anderson Silva is an upcoming mixed martial arts event to be held by the Ultimate Fighting Championship in Abu Dhabi, United Arab Emirates.[on April 10, 2010.A Middleweight Ch…
Read More »
-
juvymendoza has posted a new entry on: Lesnar vs Carwin UFC 106
UFC 112 Vitor Belfort vs Anderson Silva is an upcoming mixed martial arts event to be held by the Ultimate Fighting Championship in Abu Dhabi, United Arab Emirates.[on April 10, 2010.A Middleweight Ch…
Read More »
- December 19th, 2009
-
juvymendoza has posted a new entry on: Pinoy Portals and News
According to reliable source Manny “ Pacman” Pacquiao will fight against Floyd Mayweather on March 13, 2010.Manny “Pacman” Pacquiao vs Floyd Mayweather Jr. boxing fight is available to watch…
Read More »
-
juvymendoza has posted a new entry on: Pinoy Portals and News
According to reliable source UFC 111 Shane Carwin vs Frank Mir is scheduled on March 27, 2010 at the Prudential Center in Newark, New Jersey.Shane Carwin and Frank Mir will fight for the Interim Heavy…
Read More »
-
juvymendoza has posted a new entry on: Pinoy Portals and News
Manny “Pacman” Pacquiao a Filipino boxer will fight against the American professional boxer Floyd Mayweather 147 lbs on March 13, 2010.Manny “Pacman” Pacquiao was born in Kibawe, Bukidnon, Min…
Read More »
-
juvymendoza has posted a new entry on: Lesnar vs Carwin UFC 106
According to reliable source Manny “ Pacman” Pacquiao will fight against Floyd Mayweather on March 13, 2010.Manny “Pacman” Pacquiao vs Floyd Mayweather Jr. boxing fight is available to watch…
Read More »
-
juvymendoza has posted a new entry on: Lesnar vs Carwin UFC 106
According to reliable source UFC 111 Shane Carwin vs Frank Mir is scheduled on March 27, 2010 at the Prudential Center in Newark, New Jersey.Shane Carwin and Frank Mir will fight for the Interim Heavy…
Read More »
-
juvymendoza has posted a new entry on: Lesnar vs Carwin UFC 106
Manny “Pacman” Pacquiao a Filipino boxer will fight against the American professional boxer Floyd Mayweather 147 lbs on March 13, 2010.Manny “Pacman” Pacquiao was born in Kibawe, Bukidnon, Min…
Read More »
-
juvymendoza has posted a new entry on: Pacquiao vs Cotto live Boxing
Manny Pacman Pacquiao vs Floyd Mayweather Jr. boxing fightAccording to reliable source Manny “ Pacman” Pacquiao will fight against Floyd Mayweather on March 13, 2010.Manny “Pacman” Pacquiao v…
Read More »
-
juvymendoza has posted a new entry on: Pacquiao vs Cotto live Boxing
According to reliable source UFC 111 Shane Carwin vs Frank Mir is scheduled on March 27, 2010 at the Prudential Center in Newark, New Jersey.Shane Carwin and Frank Mir will fight for the Interim Heavy…
Read More »
-
juvymendoza has posted a new entry on: Pacquiao vs Cotto live Boxing
Manny “Pacman” Pacquiao a Filipino boxer will fight against the American professional boxer Floyd Mayweather 147 lbs on March 13, 2010.Manny “Pacman” Pacquiao was born in Kibawe, Bukidnon, Min…
Read More »
-
juvymendoza has posted a new entry on: Pacquiao vs Mayweather Jr
According to reliable source Manny “ Pacman” Pacquiao will fight against Floyd Mayweather on March 13, 2010.Manny “Pacman” Pacquiao vs Floyd Mayweather Jr. boxing fight is available to watch…
Read More »
-
juvymendoza has posted a new entry on: Pacquiao vs Mayweather Jr
According to reliable source UFC 111 Shane Carwin vs Frank Mir is scheduled on March 27, 2010 at the Prudential Center in Newark, New Jersey.Shane Carwin and Frank Mir will fight for the Interim Heavy…
Read More »
-
juvymendoza has posted a new entry on: Pacquiao vs Mayweather Jr
Manny “Pacman” Pacquiao a Filipino boxer will fight against the American professional boxer Floyd Mayweather 147 lbs on March 13, 2010.Manny “Pacman” Pacquiao was born in Kibawe, Bukidnon, Min…
Read More »
-
juvymendoza has posted a new entry on: UFC - Boxing Fight Events
According to reliable source Manny “ Pacman” Pacquiao will fight against Floyd Mayweather on March 13, 2010.Manny “Pacman” Pacquiao vs Floyd Mayweather Jr. boxing fight is available to watch…
Read More »
-
juvymendoza has posted a new entry on: UFC - Boxing Fight Events
According to reliable source UFC 111 Shane Carwin vs Frank Mir is scheduled on March 27, 2010 at the Prudential Center in Newark, New Jersey.Shane Carwin and Frank Mir will fight for the Interim Heavy…
Read More »
-
juvymendoza has posted a new entry on: UFC - Boxing Fight Events
Manny “Pacman” Pacquiao a Filipino boxer will fight against the American professional boxer Floyd Mayweather 147 lbs on March 13, 2010.Manny “Pacman” Pacquiao was born in Kibawe, Bukidnon, Min…
Read More »
-
juvymendoza has posted a new entry on: UFC Live Streaming
Manny Pacman Pacquiao vs Floyd Mayweather Jr. boxing fightAccording to reliable source Manny “ Pacman” Pacquiao will fight against Floyd Mayweather on March 13, 2010.Manny “Pacman” Pacquiao v…
Read More »
-
juvymendoza has posted a new entry on: UFC Live Streaming
According to reliable source UFC 111 Shane Carwin vs Frank Mir is scheduled on March 27, 2010 at the Prudential Center in Newark, New Jersey.Shane Carwin and Frank Mir will fight for the Interim Heavy…
Read More »
-
juvymendoza has posted a new entry on: UFC Live Streaming
Manny “Pacman” Pacquiao a Filipino boxer will fight against the American professional boxer Floyd Mayweather 147 lbs on March 13, 2010.Manny “Pacman” Pacquiao was born in Kibawe, Bukidnon, Min…
Read More »
-
juvymendoza has posted a new entry on: Programming Tutorial
Java Programming Thread ConstructorThe thread has eight constructors. Let us have a quick look at some of these constructors.Thread ConstructorsThread()Creates a new Thread object.Thread(String name)C…
Read More »
-
juvymendoza has posted a new entry on: Programming Tutorial
To determine which thread receives CPU control and gets to be executed first, each thread is assigned a priority. A priority is an integer value ranging from 1 to 10. The higher the thread priority, t…
Read More »
-
juvymendoza has posted a new entry on: Programming Tutorial
A thread refers to a single sequential flow of control within a program. For simplicity, think of threads as processes being executed within the context of a certain program. Consider modern operating…
Read More »
-
juvymendoza has posted a new entry on: Programming Tutorial
The top-level containers like JFrame and JApplet in Swing are slightly incompatible with those in AWT. This is in terms of adding components to the container. Instead of directly adding a component to…
Read More »
-
juvymendoza has posted a new entry on: Programming Tutorial
Like the AWT package, the Swing package provides classes for creating GUI applications. The package is found in javax.swing. The main difference between these two is that Swing components are written…
Read More »
- December 18th, 2009
-
juvymendoza has posted a new entry on: Programming Tutorial
C programming tutorial sample source code problem definition:Write a program to display the high school level of a student, based on its year-entry. For example, the year-entry 1 means the student is…
Read More »
-
juvymendoza has posted a new entry on: Programming Tutorial
Sample C programming sour code using if else if contional statement.C programing language problem definition:Write a program that displays an equivalent color in words once an input letter matches its…
Read More »
-
juvymendoza has posted a new entry on: Programming Tutorial
Sample C program source code using if else if conditional statements that assist in calculating student grades.Problem definition:Write a program in C programming language that will assist a teacher i…
Read More »