Thursday, 14 December 2017

Code

How To Find The Most Repeated Word In Text File In Java?

 pramodbablad

2 years ago

Problem :

Write a java program to find the most repeated word in text file. Your program should take one text file as input and find out the most repeated word in that file.

How To Find The Most Repeated Word In Text File In Java?

Step 1 : Create one HashMap object called wordCountMap which will hold words of the input file as keys and their occurrences as values.

HashMap<String, Integer> wordCountMap = new HashMap<String, Integer>();

Step 2 : Create BufferedReader object to read the input text file.

BufferedReader reader = new BufferedReader(new FileReader(“Pass The File Location Here”));

Step 3 : Read all the lines of input text file one by one into currentLine usingreader.readLine() method.

String currentLine = reader.readLine();

Step 4 : Split the currentLine into words by using space as delimiter. UsetoLowerCase() method here if you don’t want case sensitiveness.

String[] words = currentLine.toLowerCase().split(” “);

Step 5 : Iterate through each word of words array and check whether theword is present in wordCountMap. If wordis already present in wordCountMap, update its count. Otherwise insert theword as a key and 1 as its value.

if(wordCountMap.containsKey(word))

         wordCountMap.put(word, wordCountMap.get(word)+1);
}
else
{
         wordCountMap.put(word, 1);
}

Step 6 : Get the mostRepeatedWord and itscount by iterating through each entry of the wordCountMap.

Step 7 : Close the resources.

Java Program To Find The Most Repeated Word In Text File :

import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.util.HashMap; import java.util.Map.Entry; import java.util.Set; public class RepeatedWordInFile { public static void main(String[] args) { //Creating wordCountMap which holds words as keys and their occurrences as values HashMap<String, Integer> wordCountMap = new HashMap<String, Integer>(); BufferedReader reader = null; try { //Creating BufferedReader object reader = new BufferedReader(new FileReader("C:\\sample.txt")); //Reading the first line into currentLine String currentLine = reader.readLine(); while (currentLine != null) { //splitting the currentLine into words String[] words = currentLine.toLowerCase().split(" "); //Iterating each word for (String word : words) { //if word is already present in wordCountMap, updating its count if(wordCountMap.containsKey(word)) { wordCountMap.put(word, wordCountMap.get(word)+1); } //otherwise inserting the word as key and 1 as its value else { wordCountMap.put(word, 1); } } //Reading next line into currentLine currentLine = reader.readLine(); } //Getting the most repeated word and its occurrence String mostRepeatedWord = null; int count = 0; Set<Entry<String, Integer>> entrySet = wordCountMap.entrySet(); for (Entry<String, Integer> entry : entrySet) { if(entry.getValue() > count) { mostRepeatedWord = entry.getKey(); count = entry.getValue(); } } System.out.println("The most repeated word in input file is : "+mostRepeatedWord); System.out.println("Number Of Occurrences : "+count); } catch (IOException e) { e.printStackTrace(); } finally { try { reader.close(); //Closing the reader } catch (IOException e) { e.printStackTrace(); } } } }

Input File :

Java JDBC JSP Servlets
Struts Hibernate java Web Services
Spring JSF JAVA
Threads JaVa Concurrent Programming
jAvA Hadoop Jdbc jsf
spring Jsf jdbc hibernate

Output :

The most repeated word in input file is : java
Number Of Occurrences : 5

How To Find All Repeated Words In Text File And Their Occurrences In Java?

import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.List; import java.util.Map.Entry; import java.util.Set; public class RepeatedWordsInFile { public static void main(String[] args) { //Creating wordCountMap which holds words as keys and their occurrences as values HashMap<String, Integer> wordCountMap = new HashMap<String, Integer>(); BufferedReader reader = null; try { //Creating BufferedReader object reader = new BufferedReader(new FileReader("C:\\sample.txt")); //Reading the first line into currentLine String currentLine = reader.readLine(); while (currentLine != null) { //splitting the currentLine into words String[] words = currentLine.toLowerCase().split(" "); //Iterating each word for (String word : words) { //if word is already present in wordCountMap, updating its count if(wordCountMap.containsKey(word)) { wordCountMap.put(word, wordCountMap.get(word)+1); } //otherwise inserting the word as key and 1 as its value else { wordCountMap.put(word, 1); } } //Reading next line into currentLine currentLine = reader.readLine(); } //Getting all the entries of wordCountMap in the form of Set Set<Entry<String, Integer>> entrySet = wordCountMap.entrySet(); //Creating a List by passing the entrySet List<Entry<String, Integer>> list = new ArrayList<Entry<String,Integer>>(entrySet); //Sorting the list in the decreasing order of values Collections.sort(list, new Comparator<Entry<String, Integer>>() { @Override public int compare(Entry<String, Integer> e1, Entry<String, Integer> e2) { return (e2.getValue().compareTo(e1.getValue())); } }); //Printing the repeated words in input file along with their occurrences System.out.println("Repeated Words In Input File Are :"); for (Entry<String, Integer> entry : list) { if (entry.getValue() > 1) { System.out.println(entry.getKey() + " : "+ entry.getValue()); } } } catch (IOException e) { e.printStackTrace(); } finally { try { reader.close(); //Closing the reader } catch (IOException e) { e.printStackTrace(); } } } }

Input File :

Java JDBC JSP Servlets
Struts Hibernate java Web Services
Spring JSF JAVA
Threads JaVa Concurrent Programming
jAvA Hadoop Jdbc jsf
spring Jsf jdbc hibernate

Output :

Repeated Words In Input File Are :
java : 5
jdbc : 3
jsf : 3
hibernate : 2
spring : 2

You may

Wednesday, 13 December 2017

String and stringbuilder

Mutability Difference:
String is immutable, if you try to alter their values, another object gets created, whereas StringBuffer and StringBuilder are mutable so they can change their values.
Thread-Safety Difference:
The difference between StringBuffer and StringBuilder is that StringBuffer is thread-safe. So when the application needs to be run only in a single thread then it is better to use StringBuilderStringBuilder is more efficient than StringBuffer.
Situations:
  • If your string is not going to change use a String class because a String object is immutable.
  • If your string can change (example: lots of logic and operations in the construction of the string) and will only be accessed from a single thread, using a StringBuilder is good enough.
  • If your string can change, and will be accessed from multiple threads, use a StringBufferbecause StringBuffer is synchronous so you have thread-safety.

transient


 is a Java keyword which marks a member variable not to be serialized when it is persisted to streams of bytes. 
When an object is transferred through the network, the object needs to be 'serialized'. Serialization converts the object state to serial bytes. Those bytes are sent over the network and the object is recreated from those bytes. Member variables marked by the java transient keyword are not transferred; they are lost intentionally.

Serialization in Java

Serialization in java is a mechanism of writing the state of an object into a byte stream.
It is mainly used in Hibernate, RMI, JPA, EJB and JMS technologies.
The reverse operation of serialization is called deserialization.
java serialization
It is mainly used to travel object's state on the network (known as marshaling).
java.io.Serializable interface 

Serializable is a marker interface (has no data member and method). It is used to "mark" java classes so that objects of these classes may get certain capability. The Cloneable and Remote are also marker interfaces.

-->public class Student implements Serializable

eg:

  1. import java.io.Serializable;  
  2. public class Student implements Serializable{  
  3.  int id;  
  4.  String name;  
  5.  public Student(int id, String name) {  
  6.   this.id = id;  
  7.   this.name = name;  
  8.  }  
  9. }  



Spring

1.Starting class implements WebApplicationInitializer interface
(org.springframework.web.WebApplicationInitializer)==>and this class will be scanned by Spring on application startup and bootstrapped.
 then overriding "onStartup" method from WebApplicationInitializer interface
 inside this method
        AnnotationConfigWebApplicationContext appContext = new         AnnotationConfigWebApplicationContext();
    appContext.register(ApplicationContextConfig.class);




ServletRegistration.Dynamic dispatcher = container.addServlet(
                "SpringDispatcher", new DispatcherServlet(appContext));
        dispatcher.setLoadOnStartup(1);
        dispatcher.addMapping("/");

==>here,Dynamic servlet registration way of registering servlets. In Servlets 3 you can avoid creating web.xml and configure application in pure Java
It gives you some advantages like compile time check if everything is fine
in web.xml shows the above things like this
    <servlet>
     <servlet-name>appServlet</servlet-name>
     <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
      <init-param>
  <param-name>contextConfigLocation</param-name>
  <param-value>/WEB-INF/spring/appServlet/servlet-context.xml</param-value>
      </init-param>
     <load-on-startup>1</load-on-startup>
        </servlet>

<servlet-mapping>
    <servlet-name>appServlet</servlet-name>
    <url-pattern>/</url-pattern>
        </servlet-mapping>

2. class which extend WebMvcConfigurerAdapter is used for bean configuration in web.xml or servlet-context.xml that shown in web.xml contextConfigLocation in init-param in xml

    lot @Beans here used in core java code that replaces what we used in web.xml

a) @Bean(name = "viewResolver")   <===>
      <beans:bean
class="org.springframework.web.servlet.view.InternalResourceViewResolver">

-->public InternalResourceViewResolver getViewResolver() {
        InternalResourceViewResolver viewResolver = new InternalResourceViewResolver();
        viewResolver.setPrefix("/WEB-INF/views/");
        viewResolver.setSuffix(".jsp");
        return viewResolver;
        }

b)addInterceptors

3)Interceptor
    class which implements "HandlerInterceptorAdapter" is act as inteceptor class
it overriding  "preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)" method

4)@Configuration & @Bean Annotations
Annotating a class with the @Configuration indicates that the class can be used by the Spring IoC container as a source of bean definitions.

   -->package com.tutorialspoint;
     import org.springframework.context.annotation.*;

@Configuration
public class HelloWorldConfig {
     @Bean
     public HelloWorld helloWorld(){
      return new HelloWorld();
     }
   }

  equal to

<beans>
   <bean id = "helloWorld" class = "com.tutorialspoint.HelloWorld" />
</beans>

5)@ComponentScan("com.leejo")
Spring needs to know the packages to scan for annotated components. We can use @ComponentScan annotation to specify the base packages to scan. Any class which is annotated with @Component will be scanned for registered.

 6)@EnableWebMvc
     is used to enable Spring MVC
@EnableWebMvc is equivalent to <mvc:annotation-driven /> in XML
It enables support for @Controller-annotated classes that use @RequestMapping to map incoming requests to a certain method.

7)@PropertySource("classpath:some.properties")
<context:property-placeholder location="some.properties"/>
  equall to
    @Configuration
@PropertySource("classpath:some.properties")
public class ApplicationConfiguration

8)If you are using Java based configuration in your application you can enable annotation-driven injection by using AnnotationConfigApplicationContext to load your spring configuration as below:
@Configuration
@ComponentScan("com.baeldung.autowire.sample")
public class AppConfig {}

As an alternative, in Spring XML, it can be enabled by declaring it in Spring XML files like so:
<context:annotation-config/>

@Autowired and Optional Dependencies--->
          public class FooService {

              @Autowired(required = false)
                private FooDAO dataAccessor;
   
                  }

9)@Scope("session")
  The spring framework supports following five scopes. Out of which three scopes are supported only in web ApplicationContext.
    a.Singleton--Return a single bean instance per Spring IoC container
    b.Prototype--Return a new bean instance each time when requested
c.Request-- Return a single bean instance per HTTP request. *
d.Session--Return a single bean instance per HTTP session. *
e.Global Session--Return a single bean instance per global HTTP session. *

site:- https://www.tutorialspoint.com/spring/spring_bean_scopes.htm

10)Controller using @Controller
   The @Controller annotation is used to mark any java class as a controller class.
   The @RequestMapping annotation is used to indicate the type of HTTP request.
 
11)@Repository
  @Repository is an annotation that marks the specific class as a Data Access Object, thus clarifying it's role. Other markers of the same category are @Service and @Controller
   @Autowired is an annotation with a completely different meaning: it basically tells the DI container to inject a dependency.
 
12)@Service
  annotate classes at service layer level.
  annotation is used in your service layer and annotates classes that perform service tasks, often you don't use it but in many case you use this annotation to represent a best practice. For example, you could directly call a DAO class to persist an object to your database but this is horrible. It is pretty good to call a service class that calls a DAO. This is a good thing to perform the separation of concerns pattern.

13)Autowiring feature of spring framework enables you to inject the object dependency implicitly. It internally uses setter or constructor injection.

@Override public void addResourceHandlers(ResourceHandlerRegistry registry) { registry.addResourceHandler("/resources/**").addResourceLocations("/resources/"); registry.addResourceHandler("/uploads/**").addResourceLocations("/uploads/"); registry.addResourceHandler("/albums/**").addResourceLocations("/albums/"); }

==>pending
CascadeType

fetch = FetchType.LAZY,fetch = FetchType.EAGER 

Caching in Hibernate

Sieilaization
synchronisation
Cloneable ,how to create copy of object

Thursday, 7 December 2017

Generics in Java

The Java Generics programming is introduced in J2SE 5 to deal with type-safe objects.
Before generics, we can store any
type of objects in collection i.e. non-generic. Now generics, forces the java programmer to store specific type of objects.

Advantage of Java Generics

There are mainly 3 advantages of generics. They are as follows:

1) Type-safety : We can hold only a single type of objects in generics. It doesn’t allow to store other objects.

2) Type casting is not required: There is no need to typecast the object.

Before Generics, we need to type cast.

List list = new ArrayList(); 
list.add("hello"); 
String s = (String) list.get(0);//typecasting 
After Generics, we don't need to typecast the object.

List<String> list = new ArrayList<String>(); 
list.add("hello"); 
String s = list.get(0); 

3) Compile-Time Checking: It is checked at compile time so problem will not occur at runtime. The good programming strategy says it is far better to handle the problem at compile time than runtime.

List<String> list = new ArrayList<String>(); 
list.add("hello"); 
list.add(32);//Compile Time Error
Syntax to use generic collection

ClassOrInterface<Type>
Example to use Generics in java

ArrayList<String>

Wednesday, 29 November 2017

🙏 *ഒരൊറ്റ നിമിഷം.., നിങ്ങൾ സഹായിച്ചേ തീരൂ.* 🙏

🔴 *ഒരു 8 വയസ്സുകാരൻ മോന് വേണ്ടി* 🔴

ഇന്ന് *29/11/2017* ന് ഉച്ചയ്ക്ക് 3 മണി മുതൽ *ഗൗതം കൃഷ്ണ* എന്ന പൊന്നുമോനെ *റീച്ച് സ്വാശ്രയ സ്ക്കൂൾ കുറ്റൂരിൽ* നിന്നും കാണാതായിരിക്കുന്നു. *സംസാരശേഷിയില്ലാത്ത* ഈ പൊന്നു മോനെ കാണാതെ കരയുകയാണ് അച്ഛൻ ഉണ്ണികൃഷ്ണൻ (മുളക്കുന്നതുകാവ് വീട്
പി.ഓ പറപ്പൂർ..). കുട്ടിയുടെ ചിത്രം ഈ പോസ്റ്റിനോടൊപ്പം ചേർക്കുന്നു. ഇന്ന് പച്ച നിറത്തിലുള്ള ടീ. ഷർട്ടാണ് കുട്ടി ധരിച്ചിട്ടുള്ളത്. സാധിക്കുന്നവരിലേക്കെല്ലാം ഈ വിവരം എത്തിച്ച് ഈ പൊന്നു മോനെ കണ്ടെത്താൻ നിങ്ങളാൽ കഴിയുന്ന വിധത്തിൽ സഹായിക്കണമെന്ന് അഭ്യർത്ഥിക്കുന്നു...

കുട്ടിയെ കുറിച്ച് എന്തെങ്കിലും വിവരം ലഭിക്കുന്നവർ ദയവായി വിളിക്കുക

Sreekanth 9656965965
Rahul 9633696161
Narayanan 8129948686
Ratheesh 9846606034

Friday, 10 November 2017

നോട്ട് നിരോധനത്തിന്റെ യഥാർത്ഥ ഗുണഭോക്താവാര്? 3.5 ലക്ഷം കോടി തിരിച്ചു വരില്ലെന്ന് പറഞ്ഞിടത്ത് സംഭവിച്ചതെന്ത്? ഡിജിറ്റൽ ഇടപാടിന് പിറകിൽ നടക്കുന്ന കൊള്ളയും പേടിഎം ഉടമയുടെ ചിരിയും


ന്യൂഡൽഹി: നോട്ട് നിരോധനത്തിന്റെ യഥാർത്ഥ ഗുണഭോക്താക്കൾ, 2016 നവംബർ എട്ടിന് പ്രധാനമന്ത്രി നരേന്ദ്ര മോഡി അവകാശപ്പെട്ടതു പോലെ ഇന്ത്യയിലെ സാധാരണക്കാർക്ക് ഗുണം ചെയ്തില്ലെങ്കിലും ഒരു വർഷം പൂർത്തിയാകുമ്പോൾ യഥാർത്ഥ ഗുണഭോക്താവിനെ ഇന്ത്യ തിരിച്ചറിഞ്ഞിരിക്കുന്നു: വിജയ് ശേഖർ ശർമയെന്ന 39കാരനാണ് നോട്ട് നിരോധനം കൊണ്ട് ഏറ്റവുമധികം ഗുണമുണ്ടായയാൾ.
അതിലേക്ക് വരും മുമ്പ്, മോഡി കൂട്ടിയ ചില കണക്കുകളുണ്ട്. പൊട്ടിത്തകർന്നെന്ന് ഒരു വർഷം കൊണ്ട് തെളിഞ്ഞ കണക്ക്.
ഒന്നാമത് കള്ളപ്പണം ചാക്കിൽ കെട്ടി കട്ടിലിനടിയിൽ വെച്ചു വെന്നും അതുകൊണ്ട് വലിയ മൂല്യമുള്ള 500, 1000 രൂപയുടെ ആകെ മൂല്യമായ 15.78 ലക്ഷം കോടിയുടെ നോട്ടുകൾ ഒറ്റയടിക്ക് പിൻവലിച്ചാൽ സുമാർ 3.5 ലക്ഷം കോടിയുടെ നോട്ടുകൾ തിരികെ വരില്ലെന്നും നീക്കിയിരുപ്പായി ഇതിനെ കണക്കാക്കി, ഇതേ മൂല്യമുള്ളനോട്ടുകൾ റിസർവ് ബാങ്കിനെക്കൊണ്ട് അച്ചടിപ്പിച്ച് ഇന്ത്യക്കാരുടെ അകൗണ്ടിൽ ലക്ഷങ്ങൾ സർക്കാർ നിക്ഷേപിക്കുമെന്നും 40 രൂപയ്ക്ക് പെട്രോളും 50 രൂപയ്ക്ക് ഡീസലും വിൽക്കുന്ന മധുര മനോഹര രാജ്യമാകും ഇന്ത്യയെന്നുമൊക്കെയാണ് സുരേന്ദ്രനാദി സംഘികൾ ചാനലിലൂടെ തട്ടി വിട്ടത്. കൃത്യമായ ട്രെയിനിംഗ് കിട്ടിയാണ് തട്ടി വിട്ടത്. പക്ഷേ തിരികെയെത്തിയത്, ഇതുവരെയുള്ള കണക്ക് പ്രകാരം 99 ശതമാനത്തിലധികം നോട്ടുകൾ. എന്നിട്ടും എണ്ണാൻ ഇനിയും കിടക്കുന്നു. ദിനംപ്രതി അസാധു നോട്ട് പിടിക്കുന്നു. നേപ്പാൾ, ഭൂട്ടാൻ എന്നിവിടങ്ങളിൽ നിന്ന് നോട്ട് വരാനിരിക്കുന്നു. ചുരുക്കി പറഞ്ഞാൽ അടിച്ചിറക്കിയതിയും കൂടുതൽ നോട്ട് തിരികെ വാങ്ങി സർക്കാർ തന്നെ പുതിയത് കൊടുത്തു. ഇതിന് പുറമേയാണ് ലക്ഷക്കണക്കിന് തൊഴിൽ നഷ്ടം, ബാങ്കുകൾ സ്തംഭിച്ചത്, പുതിയ നോട്ട് അടിക്കാൻ വന്ന ചെലവ്, ക്യൂ നിന്ന ജനം തുടങ്ങിയ പ്രശ്നങ്ങൾ. കാശ്മീരിൽ കഴിഞ്ഞ ഒരു പതിറ്റാണ്ടിലെ ഏറ്റവും ശക്തമായ തീവ്രവാദി പ്രശ്നവും ഉണ്ടായി. പറഞ്ഞതിന് വിപരീതമാണ് നടന്നത്.
അതോടെയാണ് ഡിജിറ്റൽ ഇടപാടെന്ന പുതിയ നമ്പർ ഇറങ്ങിയത്. ഇനി തുടക്കത്തിൽ പറഞ്ഞിടത്തേക്ക് വരാം, ആരാണ് വിജയ് ശേഖർ ശർമയെന്നല്ലേ? 1978 ജൂൺ ഏഴിന് ഉത്തർപ്രദേശിലെ അലിഗഡിൽ ഒരു സ്കൂൾ അധ്യാപകന്റെ മകനായി ജനിച്ച്, ഹിന്ദി മീഡിയത്തിൽ പഠിച്ച് നന്നായി ഇംഗ്ലീഷ് എഴുതാനോ വായിക്കാനോ അറിയാതെ ഡൽഹി സർവകലാശാലയിൽ നിന്ന് ശാസ്ത്രത്തിൽ ബിരുദം നേടിയ സാധാരണക്കാരൻ. മാതാപിതാക്കളിൽ നിന്ന് പണം കടമെടുത്ത് ആരംഭിച്ച ടെലികോം ബിസിനസ് പൊളിഞ്ഞ് പോക്കറ്റിൽ പത്ത് രൂപയുമായി ജീവിച്ച ഫ്ലാഷ് ബാക്കിനുടമയെന്ന് സ്വയം വിശേഷിപ്പിക്കുന്നയാൾ.
എന്നാൽ ഇന്ന് നോട്ട് നിരോധനം 52,000 കോടി രൂപയുടെ വലിയൊരു ഡിജിറ്റൽ പേഴ്സിന് വിജയ് ശേഖർ ശർമയെ ഉടമയാക്കി. പേ ത്രൂ മൊബൈലിന്റെ ചുരുക്കെഴുത്തായി പേടി എമ്മിന്റെ ഉടമയാണ് വിജയ് ശേഖർ ശർമ.
2010 ഓഗസ്റ്റിലാണ് കറൻസി ഉപയോഗിക്കാതെ ഓൺലൈൻ വഴി പണമിടപാട് എന്ന ആശയത്തിലൂന്നിയുള്ള മൊബൈൽ വാലറ്റിന് വിജയ് തുടക്കം കുറിച്ചത്. എന്നാൽ 2016 നവംബർ എട്ടിന് രാത്രി എട്ടോടെ വിജയ് ശേഖർ ശർമയുടെ ജീവിതം മാറിമറിഞ്ഞു. കഴിഞ്ഞ വർഷം 11 കോടിയും ഈ വർഷം 28 കോടിയുമായി വിജയ് യുടെ ഉപഭോക്താക്കളുടെ എണ്ണം കുതിച്ചു കയറി. 50 കോടി ഉപഭോക്താക്കൾ എന്ന ലക്ഷ്യത്തിലുടനെത്തുവെന്ന് പറയുന്ന വിജയ് ഇന്ത്യയിലെ യുവധനികരുടെ ഫോബ്സ് പട്ടികയിലും ഇടം പിടിച്ചു; നന്ദി സാക്ഷാൽ മോഡിയോട് മാത്രം!
ഇനി ഡിജിറ്റൽ ഇടപാടിനെ പറ്റി. നോട്ടില്ലാത്ത ആ ദുരിതകാലത്ത് പേടി എം വഴി രണ്ട് മുട്ടവാങ്ങാൻ ഒരാൾ കടയിൽ പോയി എന്ന് കരുതുക. മുട്ടയ്ക്കെന്താ വിലയെന്ന് ചോദിച്ചാൽ അഞ്ച് രൂപയെന്ന് കടയുടമ പറയും. രണ്ടെണ്ണത്തിന് പത്ത് രൂപ. പേടി എം വഴി ഇടപാട് നടത്തിയാൽ നിങ്ങൾക്ക് ചുരുങ്ങിയത് 11 രൂപ ചെലവാക്കേണ്ടി വരും. കൂടുതൽ കൊടുക്കുന്നത് സാധനത്തിന്റെ വിലയല്ല. പേടി എസിന്റെ സർവീസ് ചാർജാണ്. 50 രൂപയ്ക്കു പച്ചക്കറി വാങ്ങിയാൽ അതിലധികം പണം നൽകേണ്ടി വരുന്നു. ഓരോ ചെറുതും വലുതുമായ ഇടപാടിനും പേടി എം ഉടമയുടെ പോക്കറ്റ് കുലുങ്ങുന്നു. അതു കൊണ്ടാണ് സംഘടിത കൊള്ളയും നിയമപരമായ പിടിച്ചുപറിയുമാണ് നോട്ട് നിരോധനമെന്ന് ഡോ.മൻമോഹൻ സിംഗ് ലളിതമായി രാജ്യസഭയിൽ നോട്ട് നിരോധനത്തിന് വിശേഷണം നൽകിയത്!

Wednesday, 8 November 2017

യഥാർത്ഥ സ്നേഹത്തിന് ധാരാളം അർഥങ്ങൾ ഉണ്ട്

യഥാർത്ഥ സ്നേഹത്തിന് ധാരാളം അർഥങ്ങൾ ഉണ്ട്,Real Love Do Have Lots Of Meaning


Tuesday, 7 November 2017

LG യുടെ പുതിയ ഡ്രോൺ ഫോൺ വരവായി , വിനോദസഞ്ചാരികൾക്കും സെൽഫി പ്രേമികൾക്കും LG യുടെ ഈ ഫോൺ പുതിയ ഒരു അനുഭവമാകും ,കൂടാതെ വർക്ക് ചെയ്തുകൊണ്ടും വിഡിയോ കോളുകൾ നടത്താം


LG യുടെ പുതിയ ഡ്രോൺ ഫോൺ വരവായി , വിനോദസഞ്ചാരികൾക്കും സെൽഫി പ്രേമികൾക്കും LG യുടെ ഈ ഫോൺ പുതിയ ഒരു അനുഭവമാകും ,കൂടാതെ വർക്ക് ചെയ്തുകൊണ്ടും വിഡിയോ കോളുകൾ നടത്താം 

പ്രണയം മനസ്സിൽ നിന്നാകുമ്പോൾ അതിൽ കളങ്കം ഉണ്ടാക്കാകില്ല അതിൽ അഹങ്കാരം ഉണ്ടാകില്ല , ഈ കുട്ടികളുടെ പ്രണയം പോലെ ,അമ്മയോടും അച്ഛനോടും ഓരോ മകൾക്കും മകനുമുള്ള പ്രണയം പോലെ , ഈ ലോകത്തോട് ദൈവത്തിനുള്ള പ്രണയം പോലെ


                                             

കുട്ടികളെ ഇന്ന് തിരുവനന്തപ്പുരത്ത് നിന്നും കിട്ടി ;എല്ലാ സുഹൃത്തുകൾക്കും നന്ദി. പ്രാർത്ഥന സഹായത്തേയും നന്ദിയോടെ ഓർക്കുന്നു

        



ദയവായി ഈ ഫോട്ടോ ഒന്നു ഷെയർ ചെയ്യണേ 7-11-2017 ഇന്നു കരുമഞ്ചേരി കുന്നത്തറ ബിബിൻ ആന്റണി യുടെ മകൻ ബിനോയ് , തൈച്ചിറ തമ്പി യുടെ മകൻ ഡിയോൾ  എന്നിവരെ കാണാനില്ല , എന്തേലും വിവരം കിട്ടിയാൽ  ഈ നമ്പറിൽ വിളിക്കുക 9995915409    8589999818

Monday, 6 November 2017

Saturday, 4 November 2017

Consumption at product site No GST and No Sales tax

Gst

Hirotugu Akaike



November 5, 1927Born in Shizuoka Prefecture.
1952Researcher, The Institute of Statistical Mathematics
(Technical Official of Ministry of Education)
1986Director-General, The Institute of Statistical
Mathematics(~1994)
1994Professor Emeritus, The Institute of Statistical
 Mathematics Professor Emeritus,
The Graduate University for Advance Study
August 8, 2009Died of pneumonia in Ibaraki Prefecture.
Dr. Hirotugu Akaike led the world of the Time Series Analysis in 1960s by his research and development of spectral analysis technique, multivariate time series model, statistical control methods, and TIMSAC, the software for time series analysis.
In 1970s, Dr. Akaike proposed Akaike Information Criterion. Dr. Akaike established the very new paradigm of statistical modeling, which was based on the view of the prediction and completely different from traditional statistical theory. It greatly influenced in broad area of research.
In 1980s, Dr. Akaike promoted to put Bayesian model into practical use. Dr. Akaike's research became the pioneering role for the development of new processing system for time of large scale information.

Friday, 3 November 2017

നൊവേന നിത്യ സഹായ മാതാവേ ഞങ്ങളുടെ മേൽ കരുണ ഉണ്ടാകണമേ

K J Yesudas ennu nitae modheen


Cpp Programming Language Special for Kingini



Flow of control /C++ Control Statement

A. C++ if-else

In C++ programming, if statement is used to test the condition. There are various types of if statements  in C++.

  1. if statement
  2. if-else statement
  3. nested if statement
  4. if-else-if ladder
   1.C++ IF Statement

             The C++ if statement tests the condition. It is executed if condition is true.

     




Syntax

if(condition){    
//code to be executed    
 

Example: 

int main () {  
   int num = 10;    
            if (num % 2 == 0)    
            {    
                cout<<"It is even number";    
            }   
   return 0;  
}  


   2.C++ IF-else Statement

  The C++ if-else statement also tests the condition. It executes if block if condition is true otherwise else block is executed.

Syntax:

if(condition){    
//code if condition is true    
}else{    
//code if condition is false    
}    

Code Example

int main () {  
   int num = 11;    
            if (num % 2 == 0)    
            {    
                cout<<"It is even number";    
            }   
            else  
            {    
                cout<<"It is odd number";    
            }  
   return 0;  
}  

3.C++ IF-else-if ladder Statement

            The C++ if-else-if ladder statement executes one condition from multiple statements.

Syntax

if(condition1){    
//code to be executed if condition1 is true    
}else if(condition2){    
//code to be executed if condition2 is true    
}    
else if(condition3){    
//code to be executed if condition3 is true    
}    
...    
else{    
//code to be executed if all the conditions are false    
}  

Example

int main () {  
       int num;  
       cout<<"Enter a number to check grade:";    
       cin>>num;  
            if (num <0 || num >100)    
            {    
                cout<<"wrong number";    
            }    
            else if(num >= 0 && num < 50){    
                cout<<"Fail";    
            }    
            else if (num >= 50 && num < 60)    
            {    
                cout<<"D Grade";    
            }    
            else if (num >= 60 && num < 70)    
            {    
                cout<<"C Grade";    
            }    
            else if (num >= 70 && num < 80)    
            {    
                cout<<"B Grade";    
            }    
            else if (num >= 80 && num < 90)    
            {    
                cout<<"A Grade";    
            }    
            else if (num >= 90 && num <= 100)    
            {    
                cout<<"A+ Grade";  
            }    
    }    
Output:

Enter a number to check grade:66
C Grade

B.  C++ switch

     The C++ switch statement executes one statement from multiple conditions. It is like if-else-if ladder statement in C++

Syntax

switch(expression){      
case value1:      
 //code to be executed;      
 break;    
case value2:      
 //code to be executed;      
 break;    
......      
      
default:       
 //code to be executed if all cases are not matched;      
 break;    
}    

Example

int main () {  
       int num;  
       cout<<"Enter a number to check grade:";    
       cin>>num;  
           switch (num)    
          {    
              case 10: cout<<"It is 10"; break;    
              case 20: cout<<"It is 20"; break;    
              case 30: cout<<"It is 30"; break;    
              default: cout<<"Not 10, 20 or 30"; break;    
          }    
    }    
Output:

Enter a number:
10
It is 10

C: C++ For Loop
The C++ for loop is used to iterate a part of the program several times. If the number of iteration is fixed, it is recommended to use for loop than while or do-while loops.

Syntax:
for(initialization; condition; incr/decr){    
//code to be executed    
}    


Example

int main() {  
         for(int i=1;i<=10;i++){      
            cout<<i <<"\n";      
          }       
    }   
Output:

1
2
3
4
5
6
7
8
9
10

D: C++ While loop

In C++, while loop is used to iterate a part of the program several times. If the number of iteration is not fixed, it is recommended to use while loop than for loop.

Syntax:
while(condition){    
//code to be executed    
}    


Example 
int main() {         
 int i=1;      
         while(i<=10)   
       {      
            cout<<i <<"\n";    
            i++;  
          }       
    }  

E: C++ Do-While Loop
The C++ do-while loop is used to iterate a part of the program several times. If the number of iteration is not fixed and you must have to execute the loop at least once, it is recommended to use do-while loop.

The C++ do-while loop is executed at least once because condition is checked after loop body.

Syntax
do{    
//code to be executed    
}while(condition); 

Example
int main() {  
     int i = 1;    
          do{    
              cout<<i<<"\n";    
              i++;    
          } while (i <= 10) ;    
}  
Output:

1
2
3
4
5
6
7
8
9
10

F: C++ Break Statement
The C++ break is used to break loop or switch statement. It breaks the current flow of the program at the given condition. In case of inner loop, it breaks only inner loop.



Example
int main() {  
      for (int i = 1; i <= 10; i++)    
          {    
              if (i == 5)    
              {    
                  break;    
              }    
        cout<<i<<"\n";    
          }    
}  
Output:

1
2
3
4

G: C++ Continue Statement

The C++ continue statement is used to continue loop. It continues the current flow of the program and skips the remaining code at specified condition. In case of inner loop, it continues only inner loop.The C++ continue statement is used to continue loop. It continues the current flow of the program and skips the remaining code at specified condition. In case of inner loop, it continues only inner loop.

Example
int main()  
{  
     for(int i=1;i<=10;i++){      
            if(i==5){      
                continue;      
            }      
            cout<<i<<"\n";      
        }        
}  
Output:

1
2
3
4
6
7
8
9
10

H: C++ Goto Statement

The C++ goto statement is also known as jump statement. It is used to transfer control to the other part of the program. It unconditionally jumps to the specified label.

It can be used to transfer control from deeply nested loop or switch case label.

Example

int main()  
{  
ineligible:    
         cout<<"You are not eligible to vote!\n";    
      cout<<"Enter your age:\n";    
      int age;  
      cin>>age;  
      if (age < 18){    
              goto ineligible;    
      }    
      else    
      {    
              cout<<"You are eligible to vote!";     
      }         
}