<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.javaworld.com/community" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Core Java</title>
 <link>http://www.javaworld.com/community/corejava</link>
 <description>For developers using Java Standard Edition.</description>
 <language>en</language>
<item>
 <title>Why float type cast</title>
 <link>http://www.javaworld.com/community/node/8306</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;in java why float we has to be type cast i.e.  float a = (float)2.3; and and if 2.3 is consider as double then why there is a need for that ???&lt;/p&gt;
&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/community/discussion&quot; class=&quot;og_links&quot;&gt;Community Discussion&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description>
 <category domain="http://www.javaworld.com/community/taxonomy/term/821">Core Java</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/89">java</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/829">Java Programming Concepts</category>
 <group domain="http://www.javaworld.com/community/corejava">Core Java</group>
 <group domain="http://www.javaworld.com/community/discussion">Community Discussion</group>
 <pubDate>Tue, 31 Jan 2012 07:10:53 -0500</pubDate>
 <dc:creator>parveen.gupta.23091987</dc:creator>
 <guid isPermaLink="false">8306 at http://www.javaworld.com/community</guid>
</item>
<item>
 <title>Desktop java application or browsew based application</title>
 <link>http://www.javaworld.com/community/node/8299</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;we have an multichannel softphone application where we can do chatting ,video call, voice call, email, what type of software is the best&lt;br /&gt;
Desktop java application or browser based application&lt;/p&gt;
&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/community/corejava&quot; class=&quot;og_links&quot;&gt;Core Java&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description>
 <category domain="http://www.javaworld.com/community/taxonomy/term/835">Architecture and Scalability</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/857">How-To Java</category>
 <group domain="http://www.javaworld.com/community/corejava">Core Java</group>
 <pubDate>Mon, 23 Jan 2012 12:43:16 -0500</pubDate>
 <dc:creator>hamzaissa</dc:creator>
 <guid isPermaLink="false">8299 at http://www.javaworld.com/community</guid>
</item>
<item>
 <title>Swing help: Japplet not displayed in browser </title>
 <link>http://www.javaworld.com/community/node/8297</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;My RegApp.java file contains following code :&lt;/p&gt;
&lt;p&gt;import java.applet.Applet;&lt;br /&gt;
import java.awt.Container;&lt;br /&gt;
import java.awt.GridLayout;&lt;br /&gt;
import java.awt.LayoutManager;&lt;br /&gt;
import java.awt.event.ActionEvent;&lt;br /&gt;
import java.awt.event.ActionListener;&lt;/p&gt;
&lt;p&gt;import javax.swing.*;&lt;/p&gt;
&lt;p&gt;import java.awt.*;&lt;br /&gt;
/*&lt;/p&gt;
&lt;p&gt;*/&lt;br /&gt;
public class RegApp extends JApplet implements ActionListener&lt;br /&gt;
{&lt;br /&gt;
JButton submit=new JButton(&quot;Submit&quot;);&lt;br /&gt;
JButton cancel=new JButton(&quot;Cancel&quot;);&lt;br /&gt;
JTextField cname=new JTextField(20);&lt;br /&gt;
JTextField ceid=new JTextField(20); &lt;span class=&#039;read-more&#039;&gt;&lt;a href=&quot;http://www.javaworld.com/community/node/8297&quot;&gt;&lt;br /&gt;&lt;br /&gt;Read more ...&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/community/corejava&quot; class=&quot;og_links&quot;&gt;Core Java&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description>
 <category domain="http://www.javaworld.com/community/taxonomy/term/2366">Japplet</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/99">swing</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/828">Swing/GUI Programming</category>
 <group domain="http://www.javaworld.com/community/corejava">Core Java</group>
 <pubDate>Sat, 21 Jan 2012 15:07:10 -0500</pubDate>
 <dc:creator>i.m.prashant.m</dc:creator>
 <guid isPermaLink="false">8297 at http://www.javaworld.com/community</guid>
</item>
<item>
 <title>How to execute a Callable Statement</title>
 <link>http://www.javaworld.com/community/node/8285</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;&lt;code&gt;import java.io.BufferedReader;&lt;br /&gt;
import java.io.IOException;&lt;br /&gt;
import java.io.InputStreamReader;&lt;br /&gt;
import java.sql.*;&lt;/p&gt;
&lt;p&gt;public class JoinTest {&lt;br /&gt;
public static void main(String[] args) {&lt;br /&gt;
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));&lt;br /&gt;
	try {&lt;br /&gt;
		System.out.println(&quot;Enter name of emp&quot;);&lt;br /&gt;
		String name=br.readLine();&lt;br /&gt;
		Class.forName(&quot;sun.jdbc.odbc.JdbcOdbcDriver&quot;);&lt;br /&gt;
		Connection con= DriverManager.getConnection(&quot;Jdbc:Odbc:JoinTest&quot;,&quot;sa&quot;,&quot;micro123&quot;);&lt;br /&gt;
		CallableStatement stmt = con.prepareCall(&quot;exec getPhone name&quot;);&lt;br /&gt;
		ResultSet rs=stmt.getResultSet(); &lt;span class=&#039;read-more&#039;&gt;&lt;a href=&quot;http://www.javaworld.com/community/node/8285&quot;&gt;&lt;br /&gt;&lt;br /&gt;Read more ...&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/community/corejava&quot; class=&quot;og_links&quot;&gt;Core Java&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description>
 <category domain="http://www.javaworld.com/community/taxonomy/term/821">Core Java</category>
 <group domain="http://www.javaworld.com/community/corejava">Core Java</group>
 <pubDate>Mon, 09 Jan 2012 02:18:36 -0500</pubDate>
 <dc:creator>Ankit Pandey</dc:creator>
 <guid isPermaLink="false">8285 at http://www.javaworld.com/community</guid>
</item>
<item>
 <title>Java AVL tree</title>
 <link>http://www.javaworld.com/community/node/8276</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;Hi i am making an AVL tree and i am having some problems in the search method, because a null exception error is given when the program is ran. Here is my code. Can you pls implement for me the search method so the program will run. Thanks in advance&lt;/p&gt;
&lt;p&gt;package testavltree;&lt;/p&gt;
&lt;p&gt;import java.io.IOException;&lt;br /&gt;
import javax.swing.JOptionPane;&lt;/p&gt;
&lt;p&gt;/**&lt;br /&gt;
 *&lt;br /&gt;
 * @author Rapapc&lt;br /&gt;
 */&lt;br /&gt;
public class TestAVLTree {&lt;/p&gt;
&lt;p&gt;    public static void main(String[] args) throws IOException, Exception {&lt;br /&gt;
        System.out.println(&quot;your inorder traversal is:&quot;);&lt;br /&gt;
        AVLarray process = new AVLarray(); &lt;span class=&#039;read-more&#039;&gt;&lt;a href=&quot;http://www.javaworld.com/community/node/8276&quot;&gt;&lt;br /&gt;&lt;br /&gt;Read more ...&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/community/corejava&quot; class=&quot;og_links&quot;&gt;Core Java&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description>
 <category domain="http://www.javaworld.com/community/taxonomy/term/821">Core Java</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/857">How-To Java</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/2364">Java Netbeans AVL tree</category>
 <group domain="http://www.javaworld.com/community/discussion">Community Discussion</group>
 <group domain="http://www.javaworld.com/community/corejava">Core Java</group>
 <pubDate>Tue, 03 Jan 2012 07:42:12 -0500</pubDate>
 <dc:creator>mgau0047</dc:creator>
 <guid isPermaLink="false">8276 at http://www.javaworld.com/community</guid>
</item>
<item>
 <title>Ballistic Line help</title>
 <link>http://www.javaworld.com/community/node/8251</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;Okay so, here is what I have so far, I am constructing a program that will eventually take a user input angle and velocity and display the ballistic path of a notional projectile, sans friction and whatnot. &lt;/p&gt;
&lt;p&gt;I have yet to build the user defined variables, I am just trying to get the polyline to display in the frame with a pre-defined angle and velocity. Somewhere down the road I would like to animate this, but for right now I am just trying to make it display on a Canvas. &lt;span class=&#039;read-more&#039;&gt;&lt;a href=&quot;http://www.javaworld.com/community/node/8251&quot;&gt;&lt;br /&gt;&lt;br /&gt;Read more ...&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/community/corejava&quot; class=&quot;og_links&quot;&gt;Core Java&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description>
 <category domain="http://www.javaworld.com/community/taxonomy/term/2359">Graphics Beginner</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/823">Java Language</category>
 <group domain="http://www.javaworld.com/community/discussion">Community Discussion</group>
 <group domain="http://www.javaworld.com/community/corejava">Core Java</group>
 <pubDate>Fri, 16 Dec 2011 07:59:29 -0500</pubDate>
 <dc:creator>mi_para</dc:creator>
 <guid isPermaLink="false">8251 at http://www.javaworld.com/community</guid>
</item>
<item>
 <title>Database data doesn&#039;t fill into JTable</title>
 <link>http://www.javaworld.com/community/node/8244</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;I&#039;ve been working on this code for couple of days. My procedure on the database works fine but it doesn&#039;t fill into the table. I&#039;m going through the code again and again but I can&#039;t find what&#039;s wrong... The error I get is: JavaNullPointerException and the line involving is the piece of code that returns notes.length. Here&#039;s a piece of my code:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
private Object[][] notes = null;&lt;br /&gt;
setUpStatusColumn(noteTable, noteTable.getColumnModel().getColumn(2));&lt;/p&gt;
&lt;p&gt;protected JTable createTable(GradesModel gradesModel) {&lt;br /&gt;
        return new JTable(gradesModel);&lt;br /&gt;
    } &lt;span class=&#039;read-more&#039;&gt;&lt;a href=&quot;http://www.javaworld.com/community/node/8244&quot;&gt;&lt;br /&gt;&lt;br /&gt;Read more ...&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/community/corejava&quot; class=&quot;og_links&quot;&gt;Core Java&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description>
 <category domain="http://www.javaworld.com/community/taxonomy/term/2357">abstracttablemodel</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/860">Java Q&amp;amp;A</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/2356">jtable</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/2358">nullpointer</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/828">Swing/GUI Programming</category>
 <group domain="http://www.javaworld.com/community/discussion">Community Discussion</group>
 <group domain="http://www.javaworld.com/community/corejava">Core Java</group>
 <pubDate>Tue, 13 Dec 2011 02:09:07 -0500</pubDate>
 <dc:creator>neocorp</dc:creator>
 <guid isPermaLink="false">8244 at http://www.javaworld.com/community</guid>
</item>
<item>
 <title>Text to speech without using TTS</title>
 <link>http://www.javaworld.com/community/node/8238</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;Hi All,&lt;br /&gt;
      My requirement is to convert a string value to speech without using TTS (freeTTs). how can i achieve this? can anybody give me some idea. it could be helpful.&lt;/p&gt;
&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/community/enterprise&quot; class=&quot;og_links&quot;&gt;Enterprise Java&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description>
 <category domain="http://www.javaworld.com/community/taxonomy/term/89">java</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/2182">java sound</category>
 <group domain="http://www.javaworld.com/community/corejava">Core Java</group>
 <group domain="http://www.javaworld.com/community/discussion">Community Discussion</group>
 <group domain="http://www.javaworld.com/community/tools">Tools and Methods</group>
 <group domain="http://www.javaworld.com/community/enterprise">Enterprise Java</group>
 <pubDate>Thu, 08 Dec 2011 05:48:10 -0500</pubDate>
 <dc:creator>sridharkosna</dc:creator>
 <guid isPermaLink="false">8238 at http://www.javaworld.com/community</guid>
</item>
<item>
 <title>Character.reverseBytes error!</title>
 <link>http://www.javaworld.com/community/node/8233</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;Hello,&lt;br /&gt;
I have written some code to encrypt the contents of a textfile by using the method Character.reverseBytes as shown below:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;br /&gt;
    try {&lt;br /&gt;
        reader = new BufferedReader(new FileReader(file));&lt;br /&gt;
        writer = new BufferedWriter(new FileWriter(outfile));&lt;br /&gt;
        String text = &quot;&quot;;&lt;br /&gt;
        // repeat until all lines are read&lt;br /&gt;
        while ((text = reader.readLine()) != null) {&lt;br /&gt;
            String reverseText = &quot;&quot;;&lt;br /&gt;
            for (int i=0; i &lt;span class=&#039;read-more&#039;&gt;&lt;a href=&quot;http://www.javaworld.com/community/node/8233&quot;&gt;&lt;br /&gt;&lt;br /&gt;Read more ...&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/community/corejava&quot; class=&quot;og_links&quot;&gt;Core Java&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description>
 <category domain="http://www.javaworld.com/community/taxonomy/term/821">Core Java</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/860">Java Q&amp;amp;A</category>
 <group domain="http://www.javaworld.com/community/corejava">Core Java</group>
 <pubDate>Thu, 01 Dec 2011 10:53:19 -0500</pubDate>
 <dc:creator>stratosb</dc:creator>
 <guid isPermaLink="false">8233 at http://www.javaworld.com/community</guid>
</item>
<item>
 <title>Port Swing to JSP</title>
 <link>http://www.javaworld.com/community/node/8223</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;Is it possible to port an application that was written in swing to jsp?&lt;/p&gt;
&lt;p&gt;I have an application that was written in swing, but now i need to make it web based. Can this be done without changing the swing interface?&lt;/p&gt;
&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/community/tools&quot; class=&quot;og_links&quot;&gt;Tools and Methods&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description>
 <category domain="http://www.javaworld.com/community/taxonomy/term/834">Java Web Development</category>
 <group domain="http://www.javaworld.com/community/corejava">Core Java</group>
 <group domain="http://www.javaworld.com/community/tools">Tools and Methods</group>
 <pubDate>Tue, 15 Nov 2011 07:37:32 -0500</pubDate>
 <dc:creator>ryafel</dc:creator>
 <guid isPermaLink="false">8223 at http://www.javaworld.com/community</guid>
</item>
<item>
 <title>Hibernate query for joining two tables.</title>
 <link>http://www.javaworld.com/community/node/8221</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;I need to join two tables User and Employee. And the query will be like,&lt;/p&gt;
&lt;p&gt;List list = hibernateTemplate.find(&quot;from User u left join fetch u.employee e&quot;);&lt;/p&gt;
&lt;p&gt;So what I have to do in the User,Employee POJO.&lt;br /&gt;
SQL requirement is SELECT userName,firstName from Employee as e LEFT JOIN User as u ON u.userId = e. userId.&lt;/p&gt;
&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/community/tools&quot; class=&quot;og_links&quot;&gt;Tools and Methods&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description>
 <category domain="http://www.javaworld.com/community/taxonomy/term/319">Hibernate</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/829">Java Programming Concepts</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/303">Spring</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/844">Web Application Frameworks</category>
 <group domain="http://www.javaworld.com/community/discussion">Community Discussion</group>
 <group domain="http://www.javaworld.com/community/corejava">Core Java</group>
 <group domain="http://www.javaworld.com/community/enterprise">Enterprise Java</group>
 <group domain="http://www.javaworld.com/community/tools">Tools and Methods</group>
 <pubDate>Mon, 14 Nov 2011 05:40:09 -0500</pubDate>
 <dc:creator>lofa in</dc:creator>
 <guid isPermaLink="false">8221 at http://www.javaworld.com/community</guid>
</item>
<item>
 <title>regarding row reading from Mysql ..</title>
 <link>http://www.javaworld.com/community/node/8220</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;i am trying to read rows from mysql database.like &lt;/p&gt;
&lt;p&gt;............&lt;br /&gt;
.........&lt;br /&gt;
while(rs.next){&lt;/p&gt;
&lt;p&gt;x=rs.getstring(&quot;columnname&quot;);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;my question is when a row is readed some action is to be perfromed.but in this case control goes to next row before completion of task.&lt;/p&gt;
&lt;p&gt;how to handle it ,please help me if anyone aware of it.&lt;/p&gt;
&lt;p&gt;Thanks ,&lt;br /&gt;
krishna umareddy.&lt;/p&gt;
&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/community/enterprise&quot; class=&quot;og_links&quot;&gt;Enterprise Java&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description>
 <category domain="http://www.javaworld.com/community/taxonomy/term/821">Core Java</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/829">Java Programming Concepts</category>
 <group domain="http://www.javaworld.com/community/discussion">Community Discussion</group>
 <group domain="http://www.javaworld.com/community/corejava">Core Java</group>
 <group domain="http://www.javaworld.com/community/enterprise">Enterprise Java</group>
 <pubDate>Mon, 14 Nov 2011 01:33:50 -0500</pubDate>
 <dc:creator>krishna523</dc:creator>
 <guid isPermaLink="false">8220 at http://www.javaworld.com/community</guid>
</item>
<item>
 <title> popup Menu in Glasspane</title>
 <link>http://www.javaworld.com/community/node/8218</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I tried to use popup Menu in Glasspane but found some problem. When I right click on the frame the popup menu shown. If the popup menu intersected with the frame border, it worked fine. if the popup menu were inside the frame totally, I could not select the menu items. I tried to add &quot;popup.setLightWeightPopupEnabled(false);&quot;. It did not do any good. The pouup menu worked fine if it intersected the frame border as before. But it would not show if the popup menu were inside the frame totally. Is there any way to fixed this? The program is listed below.&lt;/p&gt;
&lt;p&gt;Thank you very much. &lt;span class=&#039;read-more&#039;&gt;&lt;a href=&quot;http://www.javaworld.com/community/node/8218&quot;&gt;&lt;br /&gt;&lt;br /&gt;Read more ...&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/community/corejava&quot; class=&quot;og_links&quot;&gt;Core Java&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description>
 <group domain="http://www.javaworld.com/community/corejava">Core Java</group>
 <pubDate>Fri, 11 Nov 2011 05:13:52 -0500</pubDate>
 <dc:creator>plin</dc:creator>
 <guid isPermaLink="false">8218 at http://www.javaworld.com/community</guid>
</item>
<item>
 <title>How to manage a dbms with multimedia content in java - jdbc(client /server)</title>
 <link>http://www.javaworld.com/community/node/8208</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;I am an old timer from the 90s so java7 is a bit of a shock to me as ima an SCJP for java 2 platform from 2000.&lt;/p&gt;
&lt;p&gt;Please suggest the best way to manage a multimedia databse containg (*.jpg and *.au) files in a DBMS or RDBMS using JDBC for both client(Standalone java application) and server side(Servlets).&lt;/p&gt;
&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/community/enterprise&quot; class=&quot;og_links&quot;&gt;Enterprise Java&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description>
 <category domain="http://www.javaworld.com/community/taxonomy/term/883">Agile/Lean/XP</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/832">AJAX, RIA and Web 2.0</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/840">Application Servers</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/835">Architecture and Scalability</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/824">Client-side Java</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/882">Community Update</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/821">Core Java</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/881">Current stuff</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/843">Data Management and RDBMS</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/825">Design Patterns</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/856">Design Techniques</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/836">Enterprise Best Practices</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/830">Enterprise Java</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/857">How-To Java</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/858">Java 101</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/831">Java and XML</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/859">Java Design Patterns</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/838">Java Development Tools</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/839">Java IDEs</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/823">Java Language</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/837">Java ME</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/826">Java Platform APIs</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/829">Java Programming Concepts</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/860">Java Q&amp;amp;A</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/822">Java Security</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/884">Java Tip</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/861">Java Tips</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/862">Java Traps</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/834">Java Web Development</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/865">JavaWorld Archives</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/2343">JDBC programming using binary streams for BLOBs</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/841">Open Source Tools</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/842">Scripting and Other Languages</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/863">Server-Side Java</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/845">Software Development Lifecycle</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/846">Software Development Methodologies</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/854">Software Development Tools</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/828">Swing/GUI Programming</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/855">Testing and Debugging</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/827">Threads/Concurrency</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/864">Under the Hood</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/844">Web Application Frameworks</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/833">Web Services and SOA</category>
 <group domain="http://www.javaworld.com/community/discussion">Community Discussion</group>
 <group domain="http://www.javaworld.com/community/corejava">Core Java</group>
 <group domain="http://www.javaworld.com/community/enterprise">Enterprise Java</group>
 <pubDate>Mon, 07 Nov 2011 09:54:46 -0500</pubDate>
 <dc:creator>arunrajp</dc:creator>
 <guid isPermaLink="false">8208 at http://www.javaworld.com/community</guid>
</item>
<item>
 <title>how can i solve this problem ?</title>
 <link>http://www.javaworld.com/community/node/8206</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;hi ,&lt;br /&gt;
i have a situation in my code where i need to delete an object&lt;br /&gt;
because , my problem is&lt;br /&gt;
i have a jtree , which is getting created each time user click a button&lt;br /&gt;
like &lt;code&gt; new jtree();&lt;/code&gt; i m doing this because of my requirements&lt;br /&gt;
so each jtree object has &lt;code&gt;Object filename = node.getUserObject();&lt;/code&gt; which gives me what i have selected at tree selection listener&#039;s event&lt;br /&gt;
so suppose i have clicked a button 3 times so as a result i have 3 instance of jtree and each jtree object has fileName instance variable &lt;span class=&#039;read-more&#039;&gt;&lt;a href=&quot;http://www.javaworld.com/community/node/8206&quot;&gt;&lt;br /&gt;&lt;br /&gt;Read more ...&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/community/corejava&quot; class=&quot;og_links&quot;&gt;Core Java&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description>
 <category domain="http://www.javaworld.com/community/taxonomy/term/821">Core Java</category>
 <group domain="http://www.javaworld.com/community/corejava">Core Java</group>
 <pubDate>Fri, 04 Nov 2011 02:15:22 -0400</pubDate>
 <dc:creator>naved</dc:creator>
 <guid isPermaLink="false">8206 at http://www.javaworld.com/community</guid>
</item>
<item>
 <title> How to remove prefix from target namespace </title>
 <link>http://www.javaworld.com/community/node/8204</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;Hi All, &lt;/p&gt;
&lt;p&gt;I am new to this forum.&lt;br /&gt;
I am working on java web services. I am using &quot;wsdl2java&quot; tool to create a java stub file.&lt;br /&gt;
In my wsdl file value of targetnamespace is &quot;urn:HPD_IncidentInterface_Create_WS&quot; but i want to remove this urn prefix from java stub file.&lt;br /&gt;
I can&#039;t change wsdl file as it is application generated so is there any way to do this. &lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/community/tools&quot; class=&quot;og_links&quot;&gt;Tools and Methods&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description>
 <category domain="http://www.javaworld.com/community/taxonomy/term/829">Java Programming Concepts</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/833">Web Services and SOA</category>
 <group domain="http://www.javaworld.com/community/discussion">Community Discussion</group>
 <group domain="http://www.javaworld.com/community/corejava">Core Java</group>
 <group domain="http://www.javaworld.com/community/enterprise">Enterprise Java</group>
 <group domain="http://www.javaworld.com/community/mobile">Mobile Java</group>
 <group domain="http://www.javaworld.com/community/tools">Tools and Methods</group>
 <pubDate>Thu, 03 Nov 2011 03:28:29 -0400</pubDate>
 <dc:creator>hemant89</dc:creator>
 <guid isPermaLink="false">8204 at http://www.javaworld.com/community</guid>
</item>
<item>
 <title>Deploying Jackrabbit to JBoss AS 7</title>
 <link>http://www.javaworld.com/community/node/8185</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;Here are step by step directions on how to configure Jackrabbit  to JBoss AS 7.&lt;/p&gt;
&lt;p&gt;1. Create directory for the jcr deployment&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;$ cd $JBOSS_HOME/modules&lt;br /&gt;$ mkdir -p javax/jcr/main&lt;br /&gt;$ vi module.xml&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
Add the following snippet to the newly created module.xml file&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;module xmlns=&amp;quot;urn:jboss:module:1.0&amp;quot; name=&amp;quot;javax.jcr&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;dependencies&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;module name=&amp;quot;javax.transaction.api&amp;quot; export=&amp;quot;true&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/dependencies&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;resources&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;resource-root path=&amp;quot;jcr-2.0.jar&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- Insert resources here --&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/resources&amp;gt;&lt;br /&gt;&amp;lt;/module&amp;gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
Copy the jcr-2.0.jar to &lt;span class=&#039;read-more&#039;&gt;&lt;a href=&quot;http://www.javaworld.com/community/node/8185&quot;&gt;&lt;br /&gt;&lt;br /&gt;Read more ...&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/community/tools&quot; class=&quot;og_links&quot;&gt;Tools and Methods&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description>
 <category domain="http://www.javaworld.com/community/taxonomy/term/840">Application Servers</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/881">Current stuff</category>
 <group domain="http://www.javaworld.com/community/discussion">Community Discussion</group>
 <group domain="http://www.javaworld.com/community/corejava">Core Java</group>
 <group domain="http://www.javaworld.com/community/enterprise">Enterprise Java</group>
 <group domain="http://www.javaworld.com/community/tools">Tools and Methods</group>
 <pubDate>Thu, 20 Oct 2011 05:09:17 -0400</pubDate>
 <dc:creator>srikanth.s.nair</dc:creator>
 <guid isPermaLink="false">8185 at http://www.javaworld.com/community</guid>
</item>
<item>
 <title>Setting Oracle Datasource in JBoss AS 7</title>
 <link>http://www.javaworld.com/community/node/8184</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;Here are step by step directions on how to configure JBoss AS 7 to communicate with Oracle XE.&lt;/p&gt;
&lt;p&gt;1. Create directory for the oracle driver deployment&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;$ cd $JBOSS_HOME/modules&lt;br /&gt;$ mkdir -p com/oracle/ojdbc6/main&lt;br /&gt;$ vi module.xml&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
Add the following snippet to the newly created module.xml file&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;module xmlns=&amp;quot;urn:jboss:module:1.0&amp;quot; name=&amp;quot;com.oracle.ojdbc6&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;resources&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;resource-root path=&amp;quot;ojdbc6.jar&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/resources&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;dependencies&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;module name=&amp;quot;javax.api&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/dependencies&amp;gt;&lt;br /&gt;&amp;lt;/module&amp;gt;&lt;/code&gt;&lt;/div&gt; &lt;span class=&#039;read-more&#039;&gt;&lt;a href=&quot;http://www.javaworld.com/community/node/8184&quot;&gt;&lt;br /&gt;&lt;br /&gt;Read more ...&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/community/tools&quot; class=&quot;og_links&quot;&gt;Tools and Methods&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description>
 <category domain="http://www.javaworld.com/community/taxonomy/term/840">Application Servers</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/881">Current stuff</category>
 <group domain="http://www.javaworld.com/community/discussion">Community Discussion</group>
 <group domain="http://www.javaworld.com/community/corejava">Core Java</group>
 <group domain="http://www.javaworld.com/community/enterprise">Enterprise Java</group>
 <group domain="http://www.javaworld.com/community/tools">Tools and Methods</group>
 <pubDate>Thu, 20 Oct 2011 04:06:54 -0400</pubDate>
 <dc:creator>srikanth.s.nair</dc:creator>
 <guid isPermaLink="false">8184 at http://www.javaworld.com/community</guid>
</item>
<item>
 <title>License Terms for Java Code @JavaWorld</title>
 <link>http://www.javaworld.com/community/node/8181</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;Hi,&lt;br /&gt;
What are the License Terms for usage of code published on JavaWorld as an application ?&lt;br /&gt;
Thanks&lt;br /&gt;
-sacgaw&lt;/p&gt;
&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/community/corejava&quot; class=&quot;og_links&quot;&gt;Core Java&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description>
 <category domain="http://www.javaworld.com/community/taxonomy/term/2325">License Terms</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/854">Software Development Tools</category>
 <group domain="http://www.javaworld.com/community/discussion">Community Discussion</group>
 <group domain="http://www.javaworld.com/community/corejava">Core Java</group>
 <pubDate>Mon, 17 Oct 2011 13:06:12 -0400</pubDate>
 <dc:creator>sacgaw</dc:creator>
 <guid isPermaLink="false">8181 at http://www.javaworld.com/community</guid>
</item>
<item>
 <title>Unable to create soft-link in ubuntu</title>
 <link>http://www.javaworld.com/community/node/8176</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;hello,&lt;/p&gt;
&lt;p&gt;i m writing an app in which i want to create soft-link of files. I m using java for that and my code is :-&lt;/p&gt;
&lt;p&gt;public static void crtsftlnk(String trgt, String sftlnk)&lt;br /&gt;
{&lt;br /&gt;
try {&lt;br /&gt;
Process proc;&lt;br /&gt;
Runtime rt = Runtime.getRuntime();&lt;br /&gt;
proc = rt.exec(&quot;ln -s &quot;+trgt+&quot; &quot;+sftlnk);&lt;br /&gt;
BufferedReader br = new BufferedReader(new InputStreamReader(proc.getInputStream()));&lt;/p&gt;
&lt;p&gt;String line;&lt;br /&gt;
while ((line = br.readLine()) != null)&lt;br /&gt;
{&lt;br /&gt;
System.out.println(line);&lt;br /&gt;
}&lt;br /&gt;
} catch (Exception e)&lt;br /&gt;
{&lt;br /&gt;
//e.printStackTrace();&lt;br /&gt;
}&lt;br /&gt;
} &lt;span class=&#039;read-more&#039;&gt;&lt;a href=&quot;http://www.javaworld.com/community/node/8176&quot;&gt;&lt;br /&gt;&lt;br /&gt;Read more ...&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/community/tools&quot; class=&quot;og_links&quot;&gt;Tools and Methods&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description>
 <category domain="http://www.javaworld.com/community/taxonomy/term/821">Core Java</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/856">Design Techniques</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/857">How-To Java</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/865">JavaWorld Archives</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/2320">linux-command</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/2319">soft-links</category>
 <group domain="http://www.javaworld.com/community/discussion">Community Discussion</group>
 <group domain="http://www.javaworld.com/community/corejava">Core Java</group>
 <group domain="http://www.javaworld.com/community/tools">Tools and Methods</group>
 <pubDate>Sat, 15 Oct 2011 02:31:03 -0400</pubDate>
 <dc:creator>r4jiv007</dc:creator>
 <guid isPermaLink="false">8176 at http://www.javaworld.com/community</guid>
</item>
<item>
 <title>How do I access the POI Jakarta?</title>
 <link>http://www.javaworld.com/community/node/8134</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;Hi, I&#039;m trying to write a program that needs to access excel&lt;/p&gt;
&lt;p&gt;I&#039;ve never worked with POI Jakarta before and I do not know how to import correctly&lt;/p&gt;
&lt;p&gt;I downloaded poi-src3.8beta file and unzipped it and it spits out a folder.&lt;/p&gt;
&lt;p&gt;what do i do with this?&lt;/p&gt;
&lt;p&gt;I tried to import using statements&lt;br /&gt;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;&lt;br /&gt;
import org.apache.poi.hssf.usermodel.HSSFSheet;&lt;br /&gt;
import org.apache.poi.hssf.usermodel.HSSFRow;&lt;br /&gt;
import org.apache.poi.hssf.usermodel.HSSFCell;&lt;/p&gt;
&lt;p&gt;but none of them seem to work. &lt;/p&gt;
&lt;p&gt;how do i address this issue?&lt;/p&gt;
&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/community/corejava&quot; class=&quot;og_links&quot;&gt;Core Java&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description>
 <category domain="http://www.javaworld.com/community/taxonomy/term/821">Core Java</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/860">Java Q&amp;amp;A</category>
 <group domain="http://www.javaworld.com/community/corejava">Core Java</group>
 <pubDate>Wed, 21 Sep 2011 15:16:57 -0400</pubDate>
 <dc:creator>yjs1210</dc:creator>
 <guid isPermaLink="false">8134 at http://www.javaworld.com/community</guid>
</item>
<item>
 <title>Dynamic Loading of Classes</title>
 <link>http://www.javaworld.com/community/node/8133</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;Hai everyone&lt;/p&gt;
&lt;p&gt;I am having an application that includes two jars in its source path.&lt;br /&gt;
These two jars have same set(named) of classes.&lt;/p&gt;
&lt;p&gt;For instance there are two packages: Package1 and Package2.&lt;br /&gt;
Both have same set of static classes.&lt;/p&gt;
&lt;p&gt;When I have reference to one such static class class from MYCODE, it gives a compile time error. The compiler doesn&#039;t know from which Package should it consider.&lt;/p&gt;
&lt;p&gt;It gives the following error while compiling:&lt;br /&gt;
Cannot resolve to a type.&lt;/p&gt;
&lt;p&gt;How do I resolve it.&lt;br /&gt;
Thank you&lt;br /&gt;
Have a nice day&lt;/p&gt;
&lt;p&gt;With regards&lt;br /&gt;
Mani&lt;/p&gt;
&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/community/corejava&quot; class=&quot;og_links&quot;&gt;Core Java&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description>
 <category domain="http://www.javaworld.com/community/taxonomy/term/821">Core Java</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/881">Current stuff</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/2315">Picking up the right class when two packages having same classes exist</category>
 <group domain="http://www.javaworld.com/community/corejava">Core Java</group>
 <pubDate>Wed, 21 Sep 2011 03:26:09 -0400</pubDate>
 <dc:creator>vddmanikanta@gmail.com</dc:creator>
 <guid isPermaLink="false">8133 at http://www.javaworld.com/community</guid>
</item>
<item>
 <title>Avoid a cast when using class literals</title>
 <link>http://www.javaworld.com/community/node/8131</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;Hello. I have a question on java type safety.&lt;/p&gt;
&lt;p&gt;I have a method that accepts a class literal and (for sake of argument) returns an instance of any class (in fact there is slightly more to it). &lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;Circle c = (Circle)this.returnInstance(Circle.class);&lt;br /&gt;
//removed exception handling&lt;/p&gt;
&lt;p&gt;private Object returnInstance(Class c) throws Exception {&lt;br /&gt;
		return c.newInstance();&lt;br /&gt;
	}&lt;/p&gt;
&lt;p&gt;My question is - is there any way to avoid performing the CAST (here, on the Circle instance) in the calling code?&lt;/p&gt;
&lt;p&gt;Many thanks,&lt;br /&gt;
B&lt;/p&gt;
&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/community/corejava&quot; class=&quot;og_links&quot;&gt;Core Java&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description>
 <category domain="http://www.javaworld.com/community/taxonomy/term/2311">Avoid a cast possibly using generics?</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/823">Java Language</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/829">Java Programming Concepts</category>
 <group domain="http://www.javaworld.com/community/corejava">Core Java</group>
 <pubDate>Tue, 20 Sep 2011 08:07:13 -0400</pubDate>
 <dc:creator>bonzo101</dc:creator>
 <guid isPermaLink="false">8131 at http://www.javaworld.com/community</guid>
</item>
<item>
 <title>Copy text from EXCEL in to Java</title>
 <link>http://www.javaworld.com/community/node/8122</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;Daily grind at work requires me to copy and paste text in to a Java based company intranet web page. This is a labor intensive task due to the volume of data needing to be input. Using my mouse all day for this task is insane.&lt;/p&gt;
&lt;p&gt;How is it possible to copy text from EXCEL and paste it in to a java based web page using VBA from Excel? Please describe as many characteristics of this process as possible and sources of potential VBA code.&lt;/p&gt;
&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/community/tools&quot; class=&quot;og_links&quot;&gt;Tools and Methods&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description>
 <category domain="http://www.javaworld.com/community/taxonomy/term/2307">copy and paste to Java from Excel</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/821">Core Java</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/911">excel</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/858">Java 101</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/2308">Paste in to Java</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/2309">VBA macro</category>
 <group domain="http://www.javaworld.com/community/discussion">Community Discussion</group>
 <group domain="http://www.javaworld.com/community/corejava">Core Java</group>
 <group domain="http://www.javaworld.com/community/enterprise">Enterprise Java</group>
 <group domain="http://www.javaworld.com/community/tools">Tools and Methods</group>
 <pubDate>Tue, 13 Sep 2011 15:31:05 -0400</pubDate>
 <dc:creator>redrasp12</dc:creator>
 <guid isPermaLink="false">8122 at http://www.javaworld.com/community</guid>
</item>
<item>
 <title>Inheritence problem(a demo form Thing in java)</title>
 <link>http://www.javaworld.com/community/node/8089</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;while reading Thinking in java, I get confused when I saw the example below(the example is in page 290, Chapter polymorphism):&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;public class PrivateOverride{&lt;br /&gt;private void f(){print(&amp;quot;private f()&amp;quot;);}&lt;br /&gt;public static void main(){&lt;br /&gt;PrivateOverride po = new Derived();&lt;br /&gt;po.f();&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;class Derived extends PrivateOverride{&lt;br /&gt;public void f(){print(&amp;quot;public f()&amp;quot;)}&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
the result is private f();&lt;br /&gt;
I have two confusions: &lt;span class=&#039;read-more&#039;&gt;&lt;a href=&quot;http://www.javaworld.com/community/node/8089&quot;&gt;&lt;br /&gt;&lt;br /&gt;Read more ...&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/community/corejava&quot; class=&quot;og_links&quot;&gt;Core Java&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description>
 <category domain="http://www.javaworld.com/community/taxonomy/term/2303">inheritence</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/823">Java Language</category>
 <category domain="http://www.javaworld.com/community/taxonomy/term/829">Java Programming Concepts</category>
 <group domain="http://www.javaworld.com/community/corejava">Core Java</group>
 <pubDate>Sun, 07 Aug 2011 03:25:04 -0400</pubDate>
 <dc:creator>ljjy23</dc:creator>
 <guid isPermaLink="false">8089 at http://www.javaworld.com/community</guid>
</item>
</channel>
</rss>

