Lapskaus IT
A computer blog as colorful as Lapskaus ingredients ...
Monday, November 02, 2009
instanceof example in Java
public class MainClass {
public static void main(String[] a) {
String s = "Hello";
if (s instanceof java.lang.String)
{
System.out.println("is a String");
}
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment