DirectoryPersonalBlog Details for "Computerized World"

Computerized World

Computerized World
Discussion on latest News and Events in my computerized world
Articles: 1, 2, 3, 4, 5, 6, 7

Articles

Java Sorting: Comparator vs Comparable Tutorial
2008-07-10 08:11:00
Java Comparators and Comparables? What are they? How do we use them? This is a question we received from one of our readers. This article will discuss the java.lang.Comparator and java.lang.Comparable in details with a set of sample codes for further clarifications.PrerequisitesBasic Java knowledgeSystem RequirementsJDK installedWhat are Java Comparators and Comparables?As both names suggest (and you may have guessed), these are used for comparing objects in Java. Using these concepts; Java objects can be sorted according to a predefined order.Two of these concepts can be explained as follows.ComparableA comparable object is capable of comparing itself with another object. The class itself must implements the java.lang.Comparable interface in order to be able to compare its instances.ComparatorA comparator object is capable of comparing two different objects. The class is not comparing its instances, but some other class?s instances. This comparator class must implement the java.lan...
More About: Tutorial , Java , Tech , Sorting
Create/Restore Internet Explorer desktop shortcut
2008-06-24 14:05:00
Internet Explorer (IE) shortcut on Windows desktop is missing! May be it was deleted accidentally or missing due to some unexpected reason. So what would be the way to recreate it? You can create a shortcut just by right clicking on Windows Desktop . But you must give the application path to Internet Explorer installation. How would you find it?You would do a search on Windows for iexplore.exe on your C drive (Windows drive); and you'll end up seeing a number of iexplore.exe files on your machine. Are these the ones you have to use? which one out of these? Not exactly. The expected executable will not be shown by a Windows search. The correct file is a "protected operating system file", also it's hidden. By default Windows Explorer hides those files, but still you can view such files by changing the folder options as shown in the image. Tools->Folder Options->View The iexplore.exe executable will be available under;C:Program FilesInternet Exploreriexplore.exeSo create a shortcut...
More About: Internet , Internet Explorer , Tech
Create/Restore Internet Explorer desktop shortcut
2008-06-24 14:05:00
Internet Explorer (IE) shortcut on Windows desktop is missing! May be it was deleted accidentally or missing due to some unexpected reason. So what would be the way to recreate it? You can create a shortcut just by right clicking on Windows Desktop . But you must give the application path to Internet Explorer installation. How would you find it?You would do a search on Windows for iexplore.exe on your C drive (Windows drive); and you'll end up seeing a number of iexplore.exe files on your machine. Are these the ones you have to use? which one out of these? Not exactly. The expected executable will not be shown by a Windows search. The correct file is a "protected operating system file", also it's hidden. By default Windows Explorer hides those files, but still you can view such files by changing the folder options as shown in the image. Tools->Folder Options->View The iexplore.exe executable will be available under;C:Program FilesInternet Exploreriexplore.exeSo create a shortcut...
More About: Internet , Internet Explorer , Tech
Create/Restore Internet Explorer desktop shortcut
2008-06-24 14:05:00
Internet Explorer (IE) shortcut on Windows desktop is missing! May be it was deleted accidentally or missing due to some unexpected reason. So what would be the way to recreate it? You can create a shortcut just by right clicking on Windows Desktop . But you must give the application path to Internet Explorer installation. How would you find it?You would do a search on Windows for iexplore.exe on your C drive (Windows drive); and you'll end up seeing a number of iexplore.exe files on your machine. Are these the ones you have to use? which one out of these? Not exactly. The expected executable will not be shown by a Windows search. The correct file is a "protected operating system file", also it's hidden. By default Windows Explorer hides those files, but still you can view such files by changing the folder options as shown in the image. Tools->Folder Options->View The iexplore.exe executable will be available under;C:Program FilesInternet Exploreriexplore.exeSo create a shortcut...
More About: Internet , Internet Explorer , Tech
Create/Restore Internet Explorer desktop shortcut
2008-06-24 14:05:00
Internet Explorer (IE) shortcut on Windows desktop is missing! May be it was deleted accidentally or missing due to some unexpected reason. So what would be the way to recreate it? You can create a shortcut just by right clicking on Windows Desktop . But you must give the application path to Internet Explorer installation. How would you find it?You would do a search on Windows for iexplore.exe on your C drive (Windows drive); and you'll end up seeing a number of iexplore.exe files on your machine. Are these the ones you have to use? which one out of these? Not exactly. The expected executable will not be shown by a Windows search. The correct file is a "protected operating system file", also it's hidden. By default Windows Explorer hides those files, but still you can view such files by changing the folder options as shown in the image. Tools->Folder Options->View The iexplore.exe executable will be available under;C:Program FilesInternet Exploreriexplore.exeSo create a shortcut...
More About: Internet , Internet Explorer , Tech
Create/Restore Internet Explorer desktop shortcut
2008-06-24 14:05:00
Internet Explorer (IE) shortcut on Windows desktop is missing! May be it was deleted accidentally or missing due to some unexpected reason. So what would be the way to recreate it? You can create a shortcut just by right clicking on Windows Desktop . But you must give the application path to Internet Explorer installation. How would you find it?You would do a search on Windows for iexplore.exe on your C drive (Windows drive); and you'll end up seeing a number of iexplore.exe files on your machine. Are these the ones you have to use? which one out of these? Not exactly. The expected executable will not be shown by a Windows search. The correct file is a "protected operating system file", also it's hidden. By default Windows Explorer hides those files, but still you can view such files by changing the folder options as shown in the image. Tools->Folder Options->View The iexplore.exe executable will be available under;C:Program FilesInternet Exploreriexplore.exeSo create a shortcut...
More About: Internet , Internet Explorer , Tech
Create/Restore Internet Explorer desktop shortcut
2008-06-24 07:05:00
Internet Explorer (IE) shortcut on Windows desktop is missing! May be it was deleted accidentally or missing due to some unexpected reason. So what would be the way to recreate it? You can create a shortcut just by right clicking on Windows Desktop . But you must give the application path to Internet Explorer installation. How would you find it?You would do a search on Windows for iexplore.exe on your C drive (Windows drive); and you'll end up seeing a number of iexplore.exe files on your machine. Are these the ones you have to use? which one out of these? Not exactly. The expected executable will not be shown by a Windows search. The correct file is a "protected operating system file", also it's hidden. By default Windows Explorer hides those files, but still you can view such files by changing the folder options as shown in the image. Tools->Folder Options->View The iexplore.exe executable will be available under;C:Program FilesInternet Exploreriexplore.exeSo create a shortcut...
More About: Internet , Internet Explorer , Tech
Change Apache Tomcat port 8080 to 80 or another port number
2008-06-17 14:24:00
Change Apache Tomcat port 8080 to 80 or another port number. Whether it is Apache Tomcat 5 or Tomcat 6, by default Apache Tomcat runs on port 8080. But there can be situations where there are some other servers running on this same port forcing you to change the port of one of the servers. This article explains how to change this port 8080 on Tomcat (we tested this against Apache Tomcat 5.5 and 6.0 versions).Here we?ll be using label to denote the folder where Tomcat is installed. In our systems, tomcat is installed in the following path.=C:Java Tomcat_x.xWe need to edit the file named server.xml inside conf folder.In the server.xml file; locate the following segment.<!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --><Connector port="8080" ? />By changing this 8080 value of port attribute, server would start listening on new port number.<Connector port="8081" ? />After saving the changed server.xml file, Tomcat server must be restarted (stop then start) to...
More About: Change , Tech , Port
Change Apache Tomcat port 8080 to 80 or another port number
2008-06-17 14:24:00
Change Apache Tomcat port 8080 to 80 or another port number. Whether it is Apache Tomcat 5 or Tomcat 6, by default Apache Tomcat runs on port 8080. But there can be situations where there are some other servers running on this same port forcing you to change the port of one of the servers. This article explains how to change this port 8080 on Tomcat (we tested this against Apache Tomcat 5.5 and 6.0 versions).Here we?ll be using label to denote the folder where Tomcat is installed. In our systems, tomcat is installed in the following path.=C:Java Tomcat_x.xWe need to edit the file named server.xml inside conf folder.In the server.xml file; locate the following segment.<!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --><Connector port="8080" ? />By changing this 8080 value of port attribute, server would start listening on new port number.<Connector port="8081" ? />After saving the changed server.xml file, Tomcat server must be restarted (stop then start) to...
More About: Change , Tech , Port
Change Apache Tomcat port 8080 to 80 or another port number
2008-06-17 14:24:00
Change Apache Tomcat port 8080 to 80 or another port number. Whether it is Apache Tomcat 5 or Tomcat 6, by default Apache Tomcat runs on port 8080. But there can be situations where there are some other servers running on this same port forcing you to change the port of one of the servers. This article explains how to change this port 8080 on Tomcat (we tested this against Apache Tomcat 5.5 and 6.0 versions).Here we?ll be using label to denote the folder where Tomcat is installed. In our systems, tomcat is installed in the following path.=C:Java Tomcat_x.xWe need to edit the file named server.xml inside conf folder.In the server.xml file; locate the following segment.<!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --><Connector port="8080" ? />By changing this 8080 value of port attribute, server would start listening on new port number.<Connector port="8081" ? />After saving the changed server.xml file, Tomcat server must be restarted (stop then start) to...
More About: Change , Tech , Port
Change Apache Tomcat port 8080 to 80 or another port number
2008-06-17 14:24:00
Change Apache Tomcat port 8080 to 80 or another port number. Whether it is Apache Tomcat 5 or Tomcat 6, by default Apache Tomcat runs on port 8080. But there can be situations where there are some other servers running on this same port forcing you to change the port of one of the servers. This article explains how to change this port 8080 on Tomcat (we tested this against Apache Tomcat 5.5 and 6.0 versions).Here we?ll be using label to denote the folder where Tomcat is installed. In our systems, tomcat is installed in the following path.=C:Java Tomcat_x.xWe need to edit the file named server.xml inside conf folder.In the server.xml file; locate the following segment.<!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --><Connector port="8080" ? />By changing this 8080 value of port attribute, server would start listening on new port number.<Connector port="8081" ? />After saving the changed server.xml file, Tomcat server must be restarted (stop then start) to...
More About: Change , Tech , Port
Change Apache Tomcat port 8080 to 80 or another port number
2008-06-17 14:24:00
Change Apache Tomcat port 8080 to 80 or another port number. Whether it is Apache Tomcat 5 or Tomcat 6, by default Apache Tomcat runs on port 8080. But there can be situations where there are some other servers running on this same port forcing you to change the port of one of the servers. This article explains how to change this port 8080 on Tomcat (we tested this against Apache Tomcat 5.5 and 6.0 versions).Here we?ll be using label to denote the folder where Tomcat is installed. In our systems, tomcat is installed in the following path.=C:Java Tomcat_x.xWe need to edit the file named server.xml inside conf folder.In the server.xml file; locate the following segment.<!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --><Connector port="8080" ? />By changing this 8080 value of port attribute, server would start listening on new port number.<Connector port="8081" ? />After saving the changed server.xml file, Tomcat server must be restarted (stop then start) to...
More About: Change , Tech , Port
Change Apache Tomcat port 8080 to 80 or another port number
2008-06-17 07:24:00
Change Apache Tomcat port 8080 to 80 or another port number. Whether it is Apache Tomcat 5 or Tomcat 6, by default Apache Tomcat runs on port 8080. But there can be situations where there are some other servers running on this same port forcing you to change the port of one of the servers. This article explains how to change this port 8080 on Tomcat (we tested this against Apache Tomcat 5.5 and 6.0 versions).Here we?ll be using label to denote the folder where Tomcat is installed. In our systems, tomcat is installed in the following path.=C:Java Tomcat_x.xWe need to edit the file named server.xml inside conf folder.In the server.xml file; locate the following segment.<!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --><Connector port="8080" ? />By changing this 8080 value of port attribute, server would start listening on new port number.<Connector port="8081" ? />After saving the changed server.xml file, Tomcat server must be restarted (stop then start) to...
More About: Change , Tech , Port
java.lang.UnsupportedClassVersionError: Bad version number in .class file
2008-04-09 04:51:00
java.lang.UnsupportedClass Version Error: Bad version number in .class file [at java.lang.ClassLoader.defineClass1(Native Method)]is an error that you may face in running a compiled java class file.So as you can see from the stack trace, a class has not been loaded. But which class? The problem is this error message does not show the name of the failed .class, isn't it?No, it is not. This error is caused when you compile a .java file with one version of JDK and running the .class file with a different version of JVM.Confused? You may say; same version is not required to compile and run. Yes, that is true. But you can not run .class files that are compiled with a newer version than the JVM.Say;javac (compile) - version: Xjava (run) - version: YIf X is newer than Y; then you may face this issue at runtime.Now you know how to solve this issue, isn't it?Home
More About: Java , Tech , File
java.lang.UnsupportedClassVersionError: Bad version number in .class file
2008-04-09 04:51:00
java.lang.UnsupportedClass Version Error: Bad version number in .class file [at java.lang.ClassLoader.defineClass1(Native Method)]is an error that you may face in running a compiled java class file.So as you can see from the stack trace, a class has not been loaded. But which class? The problem is this error message does not show the name of the failed .class, isn't it?No, it is not. This error is caused when you compile a .java file with one version of JDK and running the .class file with a different version of JVM.Confused? You may say; same version is not required to compile and run. Yes, that is true. But you can not run .class files that are compiled with a newer version than the JVM.Say;javac (compile) - version: Xjava (run) - version: YIf X is newer than Y; then you may face this issue at runtime.Now you know how to solve this issue, isn't it?Home
More About: Java , Tech , File
java.lang.UnsupportedClassVersionError: Bad version number in .class file
2008-04-09 04:51:00
java.lang.UnsupportedClass Version Error: Bad version number in .class file [at java.lang.ClassLoader.defineClass1(Native Method)]is an error that you may face in running a compiled java class file.So as you can see from the stack trace, a class has not been loaded. But which class? The problem is this error message does not show the name of the failed .class, isn't it?No, it is not. This error is caused when you compile a .java file with one version of JDK and running the .class file with a different version of JVM.Confused? You may say; same version is not required to compile and run. Yes, that is true. But you can not run .class files that are compiled with a newer version than the JVM.Say;javac (compile) - version: Xjava (run) - version: YIf X is newer than Y; then you may face this issue at runtime.Now you know how to solve this issue, isn't it?Home
More About: Java , Tech , File
java.lang.UnsupportedClassVersionError: Bad version number in .class file
2008-04-09 04:51:00
java.lang.UnsupportedClass Version Error: Bad version number in .class file [at java.lang.ClassLoader.defineClass1(Native Method)]is an error that you may face in running a compiled java class file.So as you can see from the stack trace, a class has not been loaded. But which class? The problem is this error message does not show the name of the failed .class, isn't it?No, it is not. This error is caused when you compile a .java file with one version of JDK and running the .class file with a different version of JVM.Confused? You may say; same version is not required to compile and run. Yes, that is true. But you can not run .class files that are compiled with a newer version than the JVM.Say;javac (compile) - version: Xjava (run) - version: YIf X is newer than Y; then you may face this issue at runtime.Now you know how to solve this issue, isn't it?
More About: Java , Tech , File
java.lang.UnsupportedClassVersionError: Bad version number in .class file
2008-04-09 04:51:00
java.lang.UnsupportedClass Version Error: Bad version number in .class file [at java.lang.ClassLoader.defineClass1(Native Method)]is an error that you may face in running a compiled java class file.So as you can see from the stack trace, a class has not been loaded. But which class? The problem is this error message does not show the name of the failed .class, isn't it?No, it is not. This error is caused when you compile a .java file with one version of JDK and running the .class file with a different version of JVM.Confused? You may say; same version is not required to compile and run. Yes, that is true. But you can not run .class files that are compiled with a newer version than the JVM.Say;javac (compile) - version: Xjava (run) - version: YIf X is newer than Y; then you may face this issue at runtime.Now you know how to solve this issue, isn't it?Home
More About: Java , Tech , File
java.lang.UnsupportedClassVersionError: Bad version number in .class file
2008-04-09 04:51:00
java.lang.UnsupportedClass Version Error: Bad version number in .class file [at java.lang.ClassLoader.defineClass1(Native Method)]is an error that you may face in running a compiled java class file.So as you can see from the stack trace, a class has not been loaded. But which class? The problem is this error message does not show the name of the failed .class, isn't it?No, it is not. This error is caused when you compile a .java file with one version of JDK and running the .class file with a different version of JVM.Confused? You may say; same version is not required to compile and run.Yes, that is true. But you can not run .class files that are compiled with a newer version than the JVM.Say;javac (compile) - version: Xjava (run) - version: YIf X is newer than Y; then you may face this issue at runtime.Now you know how to solve this issue, isn't it?
More About: Java , Tech , File
java.lang.SecurityException: Blocked attempt to access interface - Issue in
2008-04-03 04:42:00
Exception while dispatching incoming RPC calljava.lang.SecurityException: Blocked attempt to access interface 'http://localhost/myApp/org.kamal.project .module/', which is either not implemented by this servlet or which doesn't extend RemoteService; this is either misconfiguration or a hack attemptThe GWT application was working fine earlier; so decided to upgrade to the new GWT versio. But!!! with the upgrade, application fail with a Security exception. Above is an extract from the exception thrown by GWT, while upgrading old GWT application to GWT 1.4.6 version. Even though SecurityException is thrown, most possible cause for the above error is; old gwt-servlet.jar file has not been replaced with the new gwt-servlet.jar in the server side. (Make sure you replace all the old jar files in a upgrade).By placing the new gwt-servlet.jar file inside the lib directory on your server, this issue will be resolved.Complete stack trace would look as below.- Exception while dispatching inco...
More About: Google , Java , Tech , Javascript , Access
java.lang.SecurityException: Blocked attempt to access interface - Issue in
2008-04-03 04:42:00
Exception while dispatching incoming RPC calljava.lang.SecurityException: Blocked attempt to access interface 'http://localhost/myApp/org.kamal.project .module/', which is either not implemented by this servlet or which doesn't extend RemoteService; this is either misconfiguration or a hack attemptThe GWT application was working fine earlier; so decided to upgrade to the new GWT versio. But!!! with the upgrade, application fail with a Security exception. Above is an extract from the exception thrown by GWT, while upgrading old GWT application to GWT 1.4.6 version. Even though SecurityException is thrown, most possible cause for the above error is; old gwt-servlet.jar file has not been replaced with the new gwt-servlet.jar in the server side. (Make sure you replace all the old jar files in a upgrade).By placing the new gwt-servlet.jar file inside the lib directory on your server, this issue will be resolved.Complete stack trace would look as below.- Exception while dispatching inco...
More About: Google , Java , Tech , Javascript , Access
java.lang.SecurityException: Blocked attempt to access interface - Issue in
2008-04-03 04:42:00
Exception while dispatching incoming RPC calljava.lang.SecurityException: Blocked attempt to access interface 'http://localhost/myApp/org.kamal.project .module/', which is either not implemented by this servlet or which doesn't extend RemoteService; this is either misconfiguration or a hack attemptThe GWT application was working fine earlier; so decided to upgrade to the new GWT versio. But!!! with the upgrade, application fail with a Security exception. Above is an extract from the exception thrown by GWT, while upgrading old GWT application to GWT 1.4.6 version. Even though SecurityException is thrown, most possible cause for the above error is; old gwt-servlet.jar file has not been replaced with the new gwt-servlet.jar in the server side. (Make sure you replace all the old jar files in a upgrade).By placing the new gwt-servlet.jar file inside the lib directory on your server, this issue will be resolved.Complete stack trace would look as below.- Exception while dispatching inco...
More About: Google , Java , Tech , Javascript , Access
Axis Web services Problem: No compiler found in your classpath! (you may n
2008-03-12 12:53:00
java.lang.RuntimeException: No compiler found in your classpath! (you may need to add 'tools.jar')While trying to deploy a web service in Tomcat (1.5) with Axis 1.4, you may have encountered the above error message. If you have faced with that, following information will help you in fixing it.If you are at servier side, this error may be logged in Tomcat log file as follows.- No compiler found in your classpath! (you may need to add 'tools.jar')java.lang.ClassNotFoundExcept ion: sun.tools.javac.Main at org.apache.catalina.loader.WebappClassLoa der.loadClass(WebappClassLoader.java:1355 )....On client side, you'll receive this error as follows.Exception in thread "main" AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope /}Server.userException faultSubcode: faultString: java.lang.RuntimeException: No compiler found in your classpath! (you may need to add 'tools.jar') faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}hostname:myh ostSo the obvious sol...
More About: Services , Java , Tech , Problem , Web Services
Axis Web services Problem: No compiler found in your classpath! (you may n
2008-03-12 12:53:00
java.lang.RuntimeException: No compiler found in your classpath! (you may need to add 'tools.jar')While trying to deploy a web service in Tomcat (1.5) with Axis 1.4, you may have encountered the above error message. If you have faced with that, following information will help you in fixing it.If you are at servier side, this error may be logged in Tomcat log file as follows.- No compiler found in your classpath! (you may need to add 'tools.jar')java.lang.ClassNotFoundExcept ion: sun.tools.javac.Main at org.apache.catalina.loader.WebappClassLoa der.loadClass(WebappClassLoader.java:1355 )....On client side, you'll receive this error as follows.Exception in thread "main" AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope /}Server.userException faultSubcode: faultString: java.lang.RuntimeException: No compiler found in your classpath! (you may need to add 'tools.jar') faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}hostname:myh ostSo the obvious sol...
More About: Services , Problem , Web Services , Compiler
Axis Web services Problem: No compiler found in your classpath! (you may n
2008-03-12 12:53:00
java.lang.RuntimeException: No compiler found in your classpath! (you may need to add 'tools.jar')While trying to deploy a web service in Tomcat (1.5) with Axis 1.4, you may have encountered the above error message. If you have faced with that, following information will help you in fixing it.If you are at servier side, this error may be logged in Tomcat log file as follows.- No compiler found in your classpath! (you may need to add 'tools.jar')java.lang.ClassNotFoundExcept ion: sun.tools.javac.Main at org.apache.catalina.loader.WebappClassLoa der.loadClass(WebappClassLoader.java:1355 )....On client side, you'll receive this error as follows.Exception in thread "main" AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope /}Server.userException faultSubcode: faultString: java.lang.RuntimeException: No compiler found in your classpath! (you may need to add 'tools.jar') faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}hostname:myh ostSo the obvious sol...
More About: Services , Java , Tech , Problem , Web Services
Six sixes in one over in Twenty20 Cricket - World record
2007-09-20 14:57:00
Six sixes in one over in Twenty20 (Twenty Twenty, T20) Cricket ? Oh! World record!!! It was an amazing over; all the balls went over the rope like rockets. The Start was Yuvraj Singh from India, and the poor bowler was Stuart Broad (England). This happened on 2007-09-19, in Twenty20 world up match. Yuvraj did this in the 19th over. Unsurprisingly, he scored 50 runs in 12 deliveries, creating another world record. And think for a minute? He scored 50 with 3x4 and 6x6, which adds upto 48 runs in 9 balls. This world record will not be broken for a longer time and will stay than any other record?With this six sixes, Yuvraj joined the club of Six Sixers as the 4th person. Before him; West Indies great Sir Garfield Sobers and India's Ravi Shastri joined there while Herschelle Gibbs joined this club this year in March. Well done Yuvraj.
More About: News , Sports , World Record
Six sixes in one over in Twenty20 Cricket - World record
2007-09-20 14:57:00
Six sixes in one over in Twenty20 (Twenty Twenty, T20) Cricket ? Oh! World record!!! It was an amazing over; all the balls went over the rope like rockets. The Start was Yuvraj Singh from India, and the poor bowler was Stuart Broad (England). This happened on 2007-09-19, in Twenty20 world up match. Yuvraj did this in the 19th over. Unsurprisingly, he scored 50 runs in 12 deliveries, creating another world record. And think for a minute? He scored 50 with 3x4 and 6x6, which adds upto 48 runs in 9 balls. This world record will not be broken for a longer time and will stay than any other record?With this six sixes, Yuvraj joined the club of Six Sixers as the 4th person. Before him; West Indies great Sir Garfield Sobers and India's Ravi Shastri joined there while Herschelle Gibbs joined this club this year in March. Well done Yuvraj.Home
More About: News , Sports , World Record
Six sixes in one over in Twenty20 Cricket - World record
2007-09-20 14:57:00
Six sixes in one over in Twenty20 (Twenty Twenty, T20) Cricket ? Oh! World record!!! It was an amazing over; all the balls went over the rope like rockets. The Start was Yuvraj Singh from India, and the poor bowler was Stuart Broad (England). This happened on 2007-09-19, in Twenty20 world up match. Yuvraj did this in the 19th over. Unsurprisingly, he scored 50 runs in 12 deliveries, creating another world record. And think for a minute? He scored 50 with 3x4 and 6x6, which adds upto 48 runs in 9 balls. This world record will not be broken for a longer time and will stay than any other record?With this six sixes, Yuvraj joined the club of Six Sixers as the 4th person. Before him; West Indies great Sir Garfield Sobers and India's Ravi Shastri joined there while Herschelle Gibbs joined this club this year in March. Well done Yuvraj.
More About: News , Sports , World Record
[Java Tips] Add Array into a List and convert a List into an Array
2007-09-20 14:31:00
With Java , putting contents of an Array into a new List object or adding into an existing List object can be achieved easily using a for() loop; just by going through each and every element in array and adding to List one at a time. But that is not needed. Java has provided a method to achieve that easily; just with one method call. Following code snippet shows how.//import java.util.List;//import java.util.Arrays;String[] array = {"one", "two", "three"};List newListObject = Arrays.asList(array);//adding to existing ListString[] newArray = {"four", "five"};newListObject.addAll(Arrays.asLis t(newArray));Also creating a new Array object using an existing List object can be done using another for() loop; by creating a new Array object with a size matching to list size and adding each on at a time. But for this requirement, there are a set of methods.List list = new ArrayList();list.add("one");list.add("two ");Object[] array1 = list.toArray(); //1String[] array2 = list.toArray(new String[...
More About: Tips , Tech , Convert
[Java Tips] Add Array into a List and convert a List into an Array
2007-09-20 14:31:00
With Java , putting contents of an Array into a new List object or adding into an existing List object can be achieved easily using a for() loop; just by going through each and every element in array and adding to List one at a time. But that is not needed. Java has provided a method to achieve that easily; just with one method call. Following code snippet shows how.//import java.util.List;//import java.util.Arrays;String[] array = {"one", "two", "three"};List newListObject = Arrays.asList(array);//adding to existing ListString[] newArray = {"four", "five"};newListObject.addAll(Arrays.asLis t(newArray));Also creating a new Array object using an existing List object can be done using another for() loop; by creating a new Array object with a size matching to list size and adding each on at a time. But for this requirement, there are a set of methods.List list = new ArrayList();list.add("one");list.add("two ");Object[] array1 = list.toArray(); //1String[] array2 = list.toArray(new String[...
More About: Tips , Tech , Convert
More articles from this author:
1, 2, 3, 4, 5, 6, 7
111684 blogs in the directory.
Statistics resets every week.


Contact | About
© Blog Toplist 2012 - Supported by Web Catalog - SEO by FeWorks
eXTReMe Tracker