Posts

Showing posts from October, 2017

What do the icons in Eclipse mean

Image
Eclipse what All symbol means For files and folders there are the variables "name", "dirty" and "staged". "Dirty" and "staged" are flags; if they are true, the text after the colon is displayed. For the project name there is additionally the variable "branch". If no branch is checked out the decoration shows the name of the commit. Icon Decorations Icon decorations appear on the lower left corner of the icon label. They can be configured on the Preferences dialog under Team -> Git -> Label Decorations on the tab "Icon Decorations". These are the default decorations:  

Producer and Consumer Problem Solution Using Multi threading

How to solve Producer and Consumer problem in Java using thread wait and notify method Best example Producer Consumer problem can be easily solved by using Thread Concept where one thread is used to produce and another thread is used to consume. Here the wait and notify method will be used for inter-thread communication to notify other party (Producer by Consumer thread and vice-versa). To solve this problem, Using ArrayList as shared object, where producer thread puts the object (Just Integer in this case) and consumer thread consumes the object (integer). Interestingly, Here using same list object as monitor lock, thus removing the additional overhead to create shared monitor lock. Example: import java.util.ArrayList; import java.util.*;   public class ProducerConsumer {  public static void main (String[] args) {   ArrayList<Integer> list = new ArrayList<Integer>();   Thread t1 = new Thread(new Producer(list));   Thread t2 = new Thread(new Consum...

Machine Learning Tutorials

Machine Learning         Machine learning is a core field of computer science sub-area of artificial intelligence as it enables computers to get into a mode of self-learning without being explicitly programmed. Natural Language Processing

Data Structure - Performance and Time Complexity

Image
Java Collections – Performance (Time Complexity) Details of available data structures and their time complexity and performance of the various data structures, in terms of time. We will discuss about most basic data structures, typically, Array, Map and Linked List. Before we start you most learn about - Big O notation - it describes how the time to do a given task grows with the size of the input O(1) - constant time O(x n ) - exponential time The following chart summarizes the growth in complexity due to growth of input (n). In our data structure walk-through we sometimes use the symbol h to signify the Hash Table capacity.

Angular 4 New Features

Smaller and Faster -                      Angular applications smaller and faster View Engine -                      Reduce the size of the generated code for your components Animation Package (Angular Animations) -                     Configure options and set input variables within animations                     Define reusable animations using animation()                     Query for inner elements within animations using query()                     Stagger multiple elem...

Difference between StringBuffer and StringBuilder

Difference between StringBuffer and StringBuilder StringBuilder vs StringBuffer Both are mutable classes StringBuffer is that it is synchronized which means it is  thread-safe slow than StringBuilder StringBuilder is not synchronized it is faster than StringBuffer Example of StringBuilder and StringBuffer: StringBuffer strBuffer = new StringBuffer("Test Example"); strBuffer.append("1"); StringBuilder strBuilder = new StringBuilder("Test Example"); strBuilder.append("2");  

String get all content between two characters

          You can get content between symbols even there are other same characters. You can extract a string between two delimiters or two string or symbol. Example : String-> Some Text [Id-123] Output-> Id-123 You can achieve same functionality with out using Regular expression. You can use String operaton. For any programming like Java, JavaScript, C, C++, .Net, AngularJs, You can Use String operation. String str = "Some Text [Id-123]"; String str2 =  str.substring(str.lastIndexOf("[") + 1, str.lastIndexOf("]"));  Output-> Id-123 It will work for any symbol or characters.

Today Walkin 4 Nov 2017

Image
Todays Walkins 4th Nov 2017 Company Name: Wipro Technologies Job Location: Bangalore Job Role: Technical Service Desk Qualification: Any Graduate Experience: 0 to 3 Years

Today Walkin 14 Nov 2017

Image
Today's Walkins 14th Nov 2017 1 - Company Name: Hinduja Global Solutions Job Location: Bangalore Job Role: Customer Relationship Officer Qualification: Any Graduate Experience: Freshers