SELECT column1, column2, ... FROM table_name; if you see the column2 value length is bigger, then put the size like " col colum...
Read More
How to check CRLF characters in http request
Process: /** * This method will check for CRLF characters is present in the String or * Not @ string is a String to check * ...
Read More
How to find out performance using thread dump
1>Run your program in linux in jboss 2>Goto jboss or weblogic bin 3>Search your program running or not using below command 4&g...
Read More
How to sort 10 billion numbers
Approach 1 :- (External Sorting) Here k is the size of maximum elements which can be sorted internally. Since the size of numbers is...
Read More
How to create maven project
Where your maven folder open this folder and find out the setting.xml -->Change the settings.xml -->First Create A Maven project...
Read More
Binary tree level order traversal in recursive
Process: It is working as pre-order traversal binary tree. So all data should be printed at level 1 place package com.kartik.or...
Read More
Generate Random numbers without using any external functions
Typical pseudo-random number generators calculate new numbers based on previous ones, so in theory they are completely deterministic. ...
Read More
Spiral or Zigzag level order traversal of binary tree in java recursive
Process: 1>It is working as pre-order traversal binary tree. So all data should be printed at level 1 place 2>It...
Read More
Orbitals and Electron Configuration Hunds Rule
package com.kamical.desgin.model; import java.util.LinkedHashMap; import java.util.Map.Entry; /** * https://github.com/Ruegg/ElementC...
Read More
Batch update or insert in data base
How to batch update or insert in data base Download opencsv-2.2.jar package com.kartik.pdf; import java.io.*; import au.com.by...
Read More
How to find out different date format in a string and replace this place as a mask character
How to find out different date format in a string and replace this place as a mask character package com.kartik.date.format; impor...
Read More
How to create html to pdf file using itext
Dynamic pdf file create but all tag should be proper in html other wise it give the exception itextpdf-5.5.8.jar xmlworker-5.5.8.jar ...
Read More
Convert Degree to Radian with Distance in Java
package com.kartik.test; public class MathDemo { public static void main(String[] args){ double pointX,pointY,x = 0,y = 0,distance = 1...
Read More
How to use github
https://www.youtube.com/watch?v=xuB1Id2Wxak ---for understand of github -->git init -->git config --global user.name "karti...
Read More
Subscribe to:
Posts (Atom)