Saturday, August 27, 2011

White hair

કસમયે વાળનું સફેદ થવું એક બીમારી છે.એકવાર જો વાળ સફેદ થવાનાં શરૂ થઇ જાય તો દિવસે ને દિવસે તે વધુ સફેદ થવા લાગે છે. વાળની સુરક્ષામાં જો આપણે થોડા સચેત રહીએ તો તેમાં પ્રાકૃતિક સુંદરતા અને મજબુતાઇ લાવી શકીએ છીએ.ભાગદોડવાળી જિંદગી,વાળની સારી દેખરેખ ના થવાને કારણે અને પ્રદુષણનાં કારણે વાળ અકારણ જ સફેદ થવાં લાગે છે.વાળને ડાઇ કરવી કે કલર કરવો એ એકમાત્ર સમસ્યા નથી. અમુક ઘરગથ્થુ ઉપચાર કરીને સફેદ વાળને કાળા કરી શકાય છે.

- બેસન મેળવેલુ દુધ કે દહીંના મિશ્રણથી વાળને ધોવો.ફાયદો થશે.

- દસ મિનિટ સુધી કાચા પપૈયાની પેસ્ટ માથામાં લગાડો.વાળ ખરશે નહી અને ખોડો પણ નહી થાય.

- આમળાના પાવડરમાં લીંબુ મેળવીને નિયમિત રૂપથી લગાડો સફેદ વાળ કાળા થઇ જાય છે.

- દરરોજ માથામાં ડુંગળીની પેસ્ટ લગાડો. સફેદ વાળ કાળા થઇ જશે.

- તલ ખાઓ.તેનું તેલ પણ વાળને કાળા કરવામાં ઘણું અસરકારક છે.

- અડધા કપ દહીંમા ચપટી કાળી મરી અને ચમચી ભરીને લીંબુ રસ મેળવીને વાળમાં લગાડો.7 મિનિટ પછી ધોઇ લો.વાળ કાળા થવા લાગશે.

- રોજ ઘીથી માથાની માલિશ કરીને પણ વાળ સફેદ થવાની સમસ્યામાંથી છુટકારો મળી શકે છે.

Wednesday, July 13, 2011

HashMap Hastable

While the HashMap class is not thread-safe and permits one null key, the Hashtable class is thread-safe and permits non-null keys and values only. The thread-safety the Hashtable class provides has a performance penalty. Thread-safe use of maps is also provided by the methods in the Collections class. Like the Vector class, the Hashtable class is also a legacy class that has been retrofitted to implement the Map interface.

Java Stuff

Java 1.5 features
--------------------
1.Enhanced for loop(for each for loop).
2.Enumeration( enum keyword)
3.Assertions added in java 1.5
4.AutoBoxing/Unboxing ( like wrapper classes . means automatic convert between primitive to String and vice-versa.)
5.Generics ( example: typed Collections, Set())
6.Varagrs (variable arguments) (example : for printf() function,allows variable number of different arguments)
7.StringBuilder class in jdk 1.5 (java.lang package)
8.Annotations.