среда, 12 октября 2011 г.

Learn Java in Easy Steps

Learn Core JAVA in Easy Steps [Page 5]





Conditional Constructs :-

  1. Switch
  2. If
  3. If Else
  4. If Else If ladder
  5. nested If

Looping :-
  1. While
  2. Do While
  3. For
  4. For each





--> Switch :=
switch(expression){
case 1:
statements;break;
case 2:
statements;break;
.... 
default:
statements;
}





--> If :=
if(condition){
statements;
}

--> If Else :=
if(condition)
{}
else
{}

--> If - Else - If :=
if(){

}else if(){

}else{

}

--> Nested If :=
if(){
if()
{}
}

--> While :=
while(condition){
}

--> Do While :=
do{}while(condition)
--> For :=
for(start, end, condition){} 

--> For Each :=
for(String Devharsh:array)
System.out.println(Devharsh);

Learn Core JAVA in Easy Steps [Page 4]





Operators:

1. Arithmetic
 - Assignment
 - Increment
 - Decrement

2. Relational
 - Boolean

3. Logical
 - Short Circuit
 - Long Circuit


PriorityOperatorsOperationAssociativity
1[ ]array indexleft
()method call
.member access
2++pre- or postfix incrementright
--pre- or postfix decrement
+ -unary plus, minus
~bitwise NOT
!boolean (logical) NOT
(type)type cast
newobject creation
3* / %multiplication, division, remainderleft
4+ -addition, substractionleft
+string concatenation
5<<signed bit shift leftleft
>>signed bit shift right
>>>unsigned bit shift right
6< <=less than, less than or equal toleft
> >=greater than, greater than or equal to
instanceofreference test
7==equal toleft
!=not equal to
8&bitwise ANDleft
& boolean (logical) AND
9^bitwise XORleft
^ boolean (logical) XOR
10|bitwise ORleft
| boolean (logical) OR
11&&boolean (logical) ANDleft
12||boolean (logical) ORleft
13? :conditionalright
14=assignmentright
*= /= += -= %=
<<= >>= >>>=
&= ^= |=
combinated assignment
(operation and assignment)



вторник, 11 октября 2011 г.

remedies to prevent the common cold



Ayurvedic remedies to prevent the common cold and relieve symptoms?

The ayurvedic approach to preventing illnesses is by building up the immune system and toning the body to withstand viral attacks. The following remedies not only help to prevent catching a cold but also help in relieving symptoms naturally if you already have a cold.
  • Every morning make a drink consisting of a cup of warm water mixed with the juice of half a lemon and a spoonful of honey.
  • Amla fruit is known to have a very high vitamin C content and regular use builds up the body's immunity. Amalaki capsules or Triphala capsules taken daily rejuvenate and build up the body's defences against illnesses and infections. Another well known ayurvedic herb for colds is Vasaka
  • Chyawanprash is the best known ayurvedic remedy to build immunity and prevent colds. Made of a 5000 year old formula this remedy contains over 40 herbs in an amla base. A tablespoon everyday helps maintain optimum health especially during the winter months
  • If you have a cough, take a spoonful of honey every night. It has been found that honey has the same cough suppressing properties as dextromethorphan - the chemical ingredient found in cough medicines to suppress cough. While coughing is the body's natural mechanism to remove phlegm, taking honey at night helps to relieve coughing and allow a restful night's sleep
  • Make a warm tea by adding ginger, crushed cardamom, crushed black pepper, cinnamon powder and sugar. Boil and strain the mixture. This drink will instantly help to open nasal passages, relieve sinus pressure and soothe the throat
  • Gargle with warm water every day.
  • Use a neti pot to drain and moisten nasal passages
  • Inhale warm vapors by adding a tablespoon of carom seeds in a pot and allowing the water to steam. Put a towel over your head while inhaling.
  • Applying a small amount of amrutanjan to the forehead and nose will instantly give relief when you have a blocked nose or headache.
  • Avoid cold dairy products such as yogurt and ice cream
  • Avoid fans blowing at your face
  • Take warm showers. The vapors will moisten nasal and throat passages.
  • Drink plenty of warm water and herbal teas


Herbal remedies for Common Cold


Vasaka

Helps in relieving coldsHimalaya Herbals Vasaka
Septilin

Prevents and fights infectionsHimalaya Herbals Septilin
Chyawanprash

Builds immunity, prevents coldsDabur Chyawanprash



понедельник, 10 октября 2011 г.

Latest Party Updo Hairstyles

Create a French Twist
What you need: Volumizing spray, comb, small U-shaped hairpins, bobby pins, maximum-hold hair spray.
How to Get the Look
Step 1: Spritz the hair with volumizer. Use a comb to part the hair across the back of the head, from ear to ear. Gather the top section of hair at the crown, twist it one time, and secure with hairpins.

Step 2: Gather the bottom section of the hair at the nape of the neck. Twist it in a column upward, so that the ends stick up.

Step 3: Grasp the column of hair and tuck it underneath itself in the direction of the twist. Secure the hair along the twist with bobby pins. Finish with a misting of hair spray.
French Twist Updo Hairstyle



Create a Double Bun
Best for: Hair that is medium to long and one length or with long layers. All textures.
What you need: Smoothing serum, comb, brush, elastics, hairpins.
How to Get the Look
Step 1: Apply smoothing serum to damp hair and blow-dry straight. Use a comb to part the hair across the back of the head. Brush the top section back into a ponytail at the crown and secure with an elastic. Brush the bottom section into a ponytail at the nape and secure.

Step 2: Twist the top ponytail several times and secure it with hairpins to one side of the bottom elastic.

Step 3: Do the same with the bottom ponytail, twisting it and pinning it in place on the opposite side of the top elastic. Pin the hair against the scalp so that it looks like one uniform bun.
Gorgeous Double Bun Hairstyle


Create a Cascade
Best for: Medium to long hair that is one length or layered. All textures.
What you need: Texturizing spray, one large elastic, large bobby pins.
How to Get the Look
Step 1: Spritz damp hair with texturizing spray and let air-dry. Gather the hair loosely into a ponytail at the crown. Don’t pull too tight; you want the natural texture to show. Secure with an elastic.

Step 2: Grab a one-inch section of the ponytail. Create a loop with the section by bringing the ends up to the scalp and securing with a bobby pin. Repeat until all the hair has been looped.

Step 3: To frame your face, gently pull out a few tendrils. If you have bangs, let them hang loose.
Everlasting Cascade Hairstyle


Create a Side-Swept Chignon
Best for: Medium to long hair of one length. All textures.
What you need: Comb, brush, elastic, hairpins, maximum-hold hair spray.
How to Get the Look
Step 1: Make a side part with a comb. Brush the hair into a low ponytail on the same side as the part.

Step 2: Secure the ponytail behind your ear with an elastic. Twist the ponytail until it begins to coil around on itself. Secure the coil around the elastic with hairpins.

Step 3: If any front pieces come loose or you have bangs, sweep them to the side opposite the coil. Spritz the entire style with hair spray


Create a Messy Bun
Best for: Curly or wavy hair of all lengths, with or without layers.
What you need: Texturizing spray, an elastic, bobby pins.
How to Get the Look
Step 1: Spray wet hair with texturizing spray and scrunch. Allow to air-dry, or blow-dry with a diffuser to bring out the waves.

Step 2: Gather the hair into a ponytail just below the crown. Secure with an elastic. Don’t worry if short pieces around the face come loose.

Step 3: Split the ponytail into three sections. Working section by section, twist the hair and pin it to the scalp near the elastic. Let the ends stick up.
Messy Bun hairstyle

Latest Party Updo Hairstyles

Create a French Twist
What you need: Volumizing spray, comb, small U-shaped hairpins, bobby pins, maximum-hold hair spray.
How to Get the Look
Step 1: Spritz the hair with volumizer. Use a comb to part the hair across the back of the head, from ear to ear. Gather the top section of hair at the crown, twist it one time, and secure with hairpins.

Step 2: Gather the bottom section of the hair at the nape of the neck. Twist it in a column upward, so that the ends stick up.

Step 3: Grasp the column of hair and tuck it underneath itself in the direction of the twist. Secure the hair along the twist with bobby pins. Finish with a misting of hair spray.
French Twist Updo Hairstyle



Create a Double Bun
Best for: Hair that is medium to long and one length or with long layers. All textures.
What you need: Smoothing serum, comb, brush, elastics, hairpins.
How to Get the Look
Step 1: Apply smoothing serum to damp hair and blow-dry straight. Use a comb to part the hair across the back of the head. Brush the top section back into a ponytail at the crown and secure with an elastic. Brush the bottom section into a ponytail at the nape and secure.

Step 2: Twist the top ponytail several times and secure it with hairpins to one side of the bottom elastic.

Step 3: Do the same with the bottom ponytail, twisting it and pinning it in place on the opposite side of the top elastic. Pin the hair against the scalp so that it looks like one uniform bun.
Gorgeous Double Bun Hairstyle


Create a Cascade
Best for: Medium to long hair that is one length or layered. All textures.
What you need: Texturizing spray, one large elastic, large bobby pins.
How to Get the Look
Step 1: Spritz damp hair with texturizing spray and let air-dry. Gather the hair loosely into a ponytail at the crown. Don’t pull too tight; you want the natural texture to show. Secure with an elastic.

Step 2: Grab a one-inch section of the ponytail. Create a loop with the section by bringing the ends up to the scalp and securing with a bobby pin. Repeat until all the hair has been looped.

Step 3: To frame your face, gently pull out a few tendrils. If you have bangs, let them hang loose.
Everlasting Cascade Hairstyle


Create a Side-Swept Chignon
Best for: Medium to long hair of one length. All textures.
What you need: Comb, brush, elastic, hairpins, maximum-hold hair spray.
How to Get the Look
Step 1: Make a side part with a comb. Brush the hair into a low ponytail on the same side as the part.

Step 2: Secure the ponytail behind your ear with an elastic. Twist the ponytail until it begins to coil around on itself. Secure the coil around the elastic with hairpins.

Step 3: If any front pieces come loose or you have bangs, sweep them to the side opposite the coil. Spritz the entire style with hair spray


Create a Messy Bun
Best for: Curly or wavy hair of all lengths, with or without layers.
What you need: Texturizing spray, an elastic, bobby pins.
How to Get the Look
Step 1: Spray wet hair with texturizing spray and scrunch. Allow to air-dry, or blow-dry with a diffuser to bring out the waves.

Step 2: Gather the hair into a ponytail just below the crown. Secure with an elastic. Don’t worry if short pieces around the face come loose.

Step 3: Split the ponytail into three sections. Working section by section, twist the hair and pin it to the scalp near the elastic. Let the ends stick up.
Messy Bun hairstyle

Long Hairstyles for Upcoming year 2010

Girls nowadays have been so fashionable with their hair styles, I hope these teen hairstyles can give you some ideas .

by the way some of the hair styles are for celebrity hairstyle , the hair styles are : straight, curly, layered,long hair,bangs,bouffant ponytail
Vanessa-Hudgens Hairstyle




bouffant ponytail

Ponytail Hairstyle

Vanessa Hudgens long layered Hairstyles