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!";     
      }         
}