javacodeonline.blogspot.com
Java Tutorial Online: September 2009
http://javacodeonline.blogspot.com/2009_09_01_archive.html
Wednesday, September 23, 2009. Convert Celsius to Fahrenheit Java Code. The Java Code discussed today at Java Code Online. Deals with conversion of temperature from Celsius or Centigrade to Fahrenheit. The temperature conversions are required normally many times in our daily purposes. Like the body temperature in degree Fahrenheit and degree Celsius. The only meeting point of these two temperature scales is -40 degree. At this temperature both the Celsius and the Fahrenheit scales are equal. Convert Fahr...
javacodeonline.blogspot.com
Java Tutorial Online: October 2009
http://javacodeonline.blogspot.com/2009_10_01_archive.html
Sunday, October 11, 2009. Static Inner Class Example in Java. Hello and welcome back to Java Code Online. There has been a request from many of my users to come up with an example for static inner class. So the topic of today is to to illustrate Static Inner Class in action. You may any time check my previous article on Static Inner Class in Java. For an illustration of what it is and what are the details for the other type of Inner classes in Java. today I will straight move to the example for it. The m...
javacodeonline.blogspot.com
Java Tutorial Online: Convert String to integer (int) in Java
http://javacodeonline.blogspot.com/2009/09/convert-string-to-integer-int-in-java.html
Sunday, September 6, 2009. Convert String to integer (int) in Java. Will discuss the Java Code to convert a String to an int. There is a feature provided in Java, which helps to perform this operation. The conversion is done with the help of a method called parseInt(). Actually any String which could be converted to a primitive can be converted to it, by using the parseXxx() method, where Xxx will replace the type in which it is to be converted, like int, float, etc. Import java.util.Scanner;. The String...
javacodeonline.blogspot.com
Java Tutorial Online: Java Substring Index
http://javacodeonline.blogspot.com/2010/12/java-substring-index.html
Sunday, December 12, 2010. Welcome back to Java Code Online. The index of java substring is used to retrieve the starting and ending value of the substring in the original String. Understanding how the concept of index works in substring is vital to get a hold of this Java string method. Index Value of Java Substring. When we use a substring to extract a part of the String, then we we provide the starting index value. We may use both the starting and ending value of index also. Then the output is:-.
javacodeonline.blogspot.com
Java Tutorial Online: December 2010
http://javacodeonline.blogspot.com/2010_12_01_archive.html
Monday, December 13, 2010. Java Substring Compare Example. Welcome back to Java Code Online. Today's tutorial discusses comparison of a substring with other strings which is often required in Java programs. In my last project I used to receive a large String message from a JMS sender via MQ. I was supposed to extract substrings from that original String using already known starting and ending index values. If the substring found matches the substring required, then the comparison is successful. When the ...
javacodeonline.blogspot.com
Java Tutorial Online: Length of a String - Java Program
http://javacodeonline.blogspot.com/2009/07/length-of-string-java-program.html
Tuesday, July 28, 2009. Length of a String - Java Program. Hi friends, welcome back to Java Code Online. Today's tutorial consists of a Java Program to find the number of characters in a String or number. This Java Program is helpful in finding the length of any String that is entered. The Java Code begins by asking the user to enter any String or number, and then it displays the length of that entered String. The Java Code is given below:-. Import java.io.BufferedReader;. Public class NoOfWordsInString {.
javacodeonline.blogspot.com
Java Tutorial Online: August 2011
http://javacodeonline.blogspot.com/2011_08_01_archive.html
Wednesday, August 17, 2011. Java Interview Notes Lesson 1. These notes below are aimed to be a quick reference to any one gearing for a Java Interview. I have broken the series in parts, and this is part one of the tutorial lesson. A source code file can have only one public class. If the source file contains a public class, the filename must match the public class name. There can be more than one nonpublic class in a file. Files with no public classes have no naming restrictions. Final methods cannot be...
javacodeonline.blogspot.com
Java Tutorial Online: Java Interview Notes Lesson 1
http://javacodeonline.blogspot.com/2011/08/java-interview-notes-lesson-1.html
Wednesday, August 17, 2011. Java Interview Notes Lesson 1. These notes below are aimed to be a quick reference to any one gearing for a Java Interview. I have broken the series in parts, and this is part one of the tutorial lesson. A source code file can have only one public class. If the source file contains a public class, the filename must match the public class name. There can be more than one nonpublic class in a file. Files with no public classes have no naming restrictions. Final methods cannot be...
javacodeonline.blogspot.com
Java Tutorial Online: March 2010
http://javacodeonline.blogspot.com/2010_03_01_archive.html
Tuesday, March 16, 2010. Java DataBase Connectivity JDBC. Types of JDBC Drivers. Type 1:- Bridge drivers. Example JDBC-ODBC Bridge. Type 2:- Native API drivers, partially in Java. Type 3:-Middleware is involved in communication from client's request and data source. Type 4:-The client connects directly to DataSource, pure Java drivers. Using DriverManager class for making connection. ClassforName("oracle.jdbc.driver.OracleDriver");. String url = "jdbc:oracle:thin:@" hostName ":" portName ":" dbName;.