tag:blogger.com,1999:blog-29150402.post4153001339506129924..comments2023-08-16T13:16:39.796+05:30Comments on Some Random Patterns..: Cast and TypecastSome random thoughtshttp://www.blogger.com/profile/14692279675954766584noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-29150402.post-59578146265331127462009-02-21T15:39:00.000+05:302009-02-21T15:39:00.000+05:30class Brand2Hand implements Runnable { boolean bSt...class Brand2Hand implements Runnable <BR/>{<BR/> boolean bStop;<BR/> public static void main(String[] argv) <BR/> {<BR/> Brand2Hand b2h = new Brand2Hand();<BR/> b2h.start();<BR/> Brand2Hand b2h2 = new Brand2Hand();<BR/> b2h2.bStop=true;}<BR/> public void start(){<BR/> for (int i=0;i<100;i++)<BR/> {<BR/> System.out.println(i);<BR/> if (bStop == true)<BR/> {<BR/> break;<BR/> }<BR/> } <BR/> }<BR/>}<BR/><BR/>Can any one tell me how to compile this program with out errors and what is the output??? pls email the correct code at <BR/><BR/>chandu.beans@gmail.com. I appreciate your sincere efforts.Anonymoushttps://www.blogger.com/profile/11011079363172401368noreply@blogger.comtag:blogger.com,1999:blog-29150402.post-48464158390333729942009-02-21T15:10:00.000+05:302009-02-21T15:10:00.000+05:30public class Language{ String s = "Java and Java...public class Language<BR/>{<BR/> String s = "Java and JavaScript";<BR/> public static void main(String[] args) <BR/> {new Language();}<BR/> Language() {<BR/> String sResult[]=s.split("Java");<BR/> for(Sting s : sResult) {<BR/> System.out.print(s);<BR/> }<BR/>}<BR/> }<BR/><BR/>Can any one tell me how to compile this program with out errors and what is the output???<BR/>pls email the correct code at chandu.beans@gmail.comAnonymoushttps://www.blogger.com/profile/11011079363172401368noreply@blogger.com