GT's Blog
Code snippets, technical articles, tips on computing and programming...
Pages
(Move to ...)
Type in Nepali Unicode Romanized - Convert Roman Nepali to Unicode Tool
▼
java calculate method run time
›
long startTime = System . currentTimeMillis (); doReallyLongThing (); // call your method here long endTime = System . currentTimeMi...
SQL basics- complete reference guide - part8 SQL System Commands
›
Part8: SQL System Commands Reference guide TOPIC TEXT SYNTAX Example ARRAY_GET Returns one element of an array. ARRAY_GET(arrayExpres...
SQL basics- complete reference guide - part7 - Date Time Functions
›
Part7: SQL Date Time Functions Reference TOPIC TEXT SYNTAX Example CURRENT_DATE Returns the current date. { CURRENT_DATE [ () ] | CUR...
Java Capture/save image from swing Component eg : JFrame JPanel ..
›
Capture image from any swing Component and save to file. Capture : BufferedImage image = new BufferedImage(component.getWidth(), ...
SQL basics- complete reference guide - part6 - String functions
›
Part6: SQL String Functions Complete Reference TOPIC TEXT SYNTAX Example ASCII Returns the ASCII value of the first character in the ...
java pad string left right - String.format() method
›
String.format() can be used to left/right pad a given string. public static String padRight ( String s , int n ) { return ...
Top Java Interview Question : reverse a string using recursion
›
Best Answer using Recursion : public String reverse(String str) { if ((null == str) || (str.length() <= 1)) { return st...
SQL basics- complete reference guide - part5 - Mathematical Functions
›
Part5: Mathematical Functions in SQL- Complete Reference Function Description SYNTAX Example ABS ABS ( { int | long | decimal | doubl...
SQL basics- complete reference guide - part4 - Aggregate Functions in SQL
›
Part4: Aggregate Functions in SQL- complete reference sheet Command/Function Description SYNTAX Example AVG The average (mean) value....
Call one constructor from another in Java
›
Is this possible to call one constructor from another in Java ? Yes, it is possible: public class Foo { private int x; public F...
‹
›
Home
View web version