Monday, 14 March 2016

simple coding for addition in java

Java is simple language. Here is the simple coding to adding two numbers that are given already.

First, is to include the header file.



    |import java.io.*; 
    |class adding
    |{
Here the adding is the class name. You can keep your desired classname. This should not be any keywords.
This is the main program.
First is to declare the void main then the declaration part. Then the execution segment.
 
   |public static void main(String args[])
   |{
   |int a,b,c;
   |a= 5;
   |b=7;
   |c= a+b;
   |System.out.println("Sum of the given       number is "+c);
   | }
   | }
After typing the program in the notepad, save the file using an extension as .java
Open the command prompt. Type the name of the drive where you have saved the file. 
Then now to set the path. 
path = C:\jdk1.3\bin;
Now to compile the java program 
javac filename.java
In our case its, adding so 

javac adding.java

Any errors will be shown. If not the next line will be displayed. 
Now to run the file then. Type java filename.

java adding

Output will be 



C:\Documents and Settings\dcom358>H:

H:\>path=C:\jdk1.3\bin;

H:\>javac adding.java

H:\>java adding
Sum of the given number is 12




 

Worth a Try

Below are four (4) questions and a bonus question. You have to answer them instantly. You can't take your time, answer all of them immediately. OK?
 
 
Let's find out just how clever you really are .
 
Ready?
GO!!! (Scroll down)
Question 1 :
You are participating in a race. You overtake the second person. What position are you in?
......
......
......
......
......
......
......
......
......
...... 
...... 
...... 
...... 
...... 
...... 
...... 
......
......
......
......
-Answer: If you answered that you are first, then you are absolutely wrong! If you overtake the second person and you take his place, you are second!
Try not to screw up in the next question.
To answer the second question, don't take as much time as you took for the first question.
 
Question 2 :
If you overtake the last person, then you are...?
......
......
......
......
......
......
......
......
......
...... 
...... 
...... 
...... 
...... 
...... 
...... 
......
......
......
......
Answer: If you answered that you are second to last, then you are wrong again. Tell me, how can you overtake the LAST person?!
 
You're not very good at this! Are you?
 
Question 3 :
Very tricky math! Note: This must be done in your head only. Do NOT use paper and pencil or a calculator. Try it.
 
Take 1000 and add 40 to it. Now add another 1000. Now add 30. Add another 1000. Now add 20. Now add another 1000. Now add 10. What is the total?
......
......
......
......
......
......
......
......
......
...... 
...... 
...... 
...... 
...... 
...... 
...... 
......
......
......
......
 
Did you get 5000? The correct answer is actually 4100.
Don't believe it? Check with your calculator! Today is definitely not your day. Maybe you will get the last question right?
 
Question 4 :
Mary's father has five daughters: 1. Nana, 2. Nene, 3. Nini, 4. Nono. What is the name of the fifth daughter? 
......
......
......
......
......
......
......
......
......
...... 
...... 
...... 
...... 
...... 
...... 
...... 
......
......
......
......
 
Answer: Nunu?
NO! Of course not. Her name is Mary. Read the question again
Okay, now the bonus round . . .
 
Question 5 :
There is a mute person who wants to buy a toothbrush. By imitating the action of brushing one's teeth he successfully expresses himself to the shopkeeper and the purchase is done.
Now if there is a blind man who wishes to buy a pair of sunglasses, how should he express himself?
......
......
......
......
......
......
......
......
......
...... 
...... 
...... 
...... 
...... 
...... 
...... 
......
......
......
......
He just has to open his mouth and ask, so simple.
 
KEEP THIS GOING TO FRUSTRATE THE "SMART PEOPLE" IN YOUR LIFE.
dont get Tension 😜😝 😄😁😃😌😀😂😆😋.. just frwrd.😝😜 ha ha ha ha

Sunday, 6 March 2016

kavidhai

வாழ்த்தி  பேச முடியாவில்லை என்றாலும்,
தாழ்த்தி பேசாதிருப்போம் 
அது நம்மை உயர்த்தும் !!!!!

MY FAVORITE LINES


      UPS and DOWNS in life are very important to keep us going, because a straight line even in an E.C.G means we are not alive.
                          -RATAN TATA

Saturday, 5 March 2016

FACT FACT FACT

  • You have no sense of smell when you are sleeping!!!
  • The tooth is the only part of the human body that can't repair itself.
  • When awake, the human brain produces enough electricity to power a small light bulb.
  • Water from the oceans take around 1000 years to travel all the way around the whole globe
  • Dieting could force your brain to eat itself.
  • Within three days of death, the enzymes that once digested your dinner begin to eat you.
  • Humans are the only mammal that cannot swallow and breathe at the same time.
  • We all have tiny mites living in our eyelashes.
  • The longest mountain range in the world is under water.
  • Most of the dust underneath your bed is actually your own dead skin.
  • There are more bacteria in your mouth than there are people in the world.
  • Having a 5 minute conversation with a woman gives men improved mental health.
  • Anger is a natural defense against pain. So when someone says I hate you, it really means "you hurt me" .

Friday, 4 March 2016

RIGHT TIME FOR RIGHT THINGS

Certain food are good only at the right time. Taking them in the wrong time may cause other problems. Here are the best and worst time of taking certain food.

MILK  
BEST TIME - NIGHT- Gives a good sleep
WORST TIME - MORNING - Can be heavy to digest and mess with your meal timings., unless a lot of exercise has been done.

APPLE

BEST TIME - MORNING - Has the fiber pectin that helps in bowel movement and prevents constipation and also helps in avoiding carcinogens.
WORST TIME - EVENING / NIGHT - Lead to discomfort and would affect the digestive system.

BANANA

BEST TIME - NOON - Helps in digestion and soothe heartburn.
WORST TIME - NIGHT - Eating banana at night can lead to mucus formation and cold.  

PULSES AND BEANS

BEST TIME- NOON- Help in digestion and reduce cholesterol level.
WORST TIME- MORNING- It would lead to increase in appetite and lead you to binge eat.