You might be familiar with the line equation a x +b y +c= 0 . Where a,b,c are constants and x,y are the points on the line. Now let us ch...
Read More
Home » Archive for May 2013
Round Off Number To Nearest Tens
Here is a aktivitas on rounding off a number to nearest tens. For example, 35 will be rounded off to 30 and 36 to 40. Description Th...
Read More
Check Sum Of Two Numbers To Sasaran In Array
In this i'll be discussing about checking whether any 2 numbers in an array can add up to give a target number. For this, i have wri...
Read More
Draw Table On Swing Tooltip
Let us draw a table on Swing tooltip. The coding is very easy all you need to do is to just go through this easy and small program. Wh...
Read More
How To Reverse Elements In Array
The following illustrates reversing elements in an array using the common swapping technique. The logic is dead simple and is considered...
Read More
Find Largest Number In Array
Here is the most common and simple logic to find the largest number in array. The following kegiatan consists of a method called findLarg...
Read More
Sort Elements In Arraylist, Linkedlist, Vector
Let us sort elements in ArrayList in the increasing order. Not only ArrayList, but also LinkedList. The code for both of them is same and...
Read More
Copy 1D Array To 2D Array Easily
In this example, i'll show you how to copy a 1-D array into 2-D array in Java. Here is a simple logic that does the task. The task is...
Read More
Difference Between Break And Continue Keywords
When we enter into loops concept we might undergo the two keywords break and continue . These two keywords 'sometimes' seem to d...
Read More
How To Convert Arraylist Into Array
Here is a question about converting ArrayList to an array. We can do this using two simple methods in the java.util.ArrayList . These me...
Read More
Swapping Variables Without Temp Variable
Before we have seen how to swap two variables with the use of temp . Now, it's time to see how to swap two variables without the use ...
Read More
Illustrating Classcastexception With Example
The following illustrates ClassCastException in Java with example. Consider the example, this seems to be OK but when you execute it.......
Read More
Using Scriptlets In Jsp With Example
We may need to write Java code in our JSP kegiatan instead of just printing something on the web page. The code usually is not of a singl...
Read More
Add Two Numbers In Jsp Easily
Here is an example on adding up two numbers in JSP. This is very simple as you see below. This requires very small piece of code. All i h...
Read More
Swapping Two Variables In Java
Swapping means inter changing. Swapping two numbers or two variables is nothing but sending the value of one variable to another variable...
Read More
Get Item After The Array Is Used Up 'N' Times
Sometimes we may encounter a question like, if there are 5 colors and every color is picked up by a student in order and if 72 students p...
Read More
Get Last Digit In A Number
Let me illustrate a very simple logic on getting last digit of a number. The logic is applicable on any programming language and not just...
Read More
Installing Spring Framework In Windows
Here is a simple tutorial on installing and configuring Spring Framework . This is very simple that you'll just laugh at it. All you ...
Read More
Yet Another Spring Hello World Application
Here is another Spring Hello World application which acts as an introductory start to your spring journey. This is very simple and in thi...
Read More
Subscribe to:
Posts (Atom)