36,051 Topics
![]() | |
HI, I want to write a rss parser which parses the rss feeds so that I can extract the descrition part and the date and title of the feeds. I tried using the rss parser program RssParser parser = RssParserFactory.createDefault(); Rss rss = parser.parse(new URL("http://rss.ireport.com/feeds/oncnn.rss")); rss.getChildren(); Channel c=rss.getChannel(); but I … | |
I just wanted to demonstrate a quick point regarding Constructors & inheritance. Look at these two classes and think about what you might expect to see after the main method has run. Notice that ClassB is a subclass (inherits from) of ClassA. So, what do we expect the output to … | |
Is there any advantages to make web site using JAVA? I think PHP is much bettter to use. | |
This question is more from curiosity than necessity. I've been playing with the Java2D API, and I noticed a weird quirk with using Active Rendering. The Graphics 2D object doesn't appear to do anything the first time I use it. My code basically looks like this (I know it isn't … | |
I am trying to connect objective c application to Java.. I am relatively new to both.. Basically I would like Java application front-end which can call the objective - c app. I was thinking about first creating the obj c library in xcode and than wrap it in java somehow … | |
i am trying compelete my project for college i am assigned to develop a businfo map in java and being a beginner in java i am completely lost in it. i am trying to use map images to show the paths and locations as start and destination. we should be … | |
All, I have developed an application using RMI and am in need of help for the deployment of sed program as I have tried numerous different ways to release. Along those lines, I also am not too clear on the codebase and how to release to a [url]http://[I]hostname[/url][/I]:[I]port[/I]/[I]program_name[/I]. Here are … | |
i know the difference between interface and abstract. how it will differ in real-time application scenario. can you please explain with example? | |
I'm trying to create a class that holds a 2D string array to be used by another class. For some reason, my IDE gives me a bunch of errors when I try to compile. Here's my code: [CODE]public class Lists { String[][] ListArrays = {"Why, Hello there!","Welcome.","blah blah blah","more useless … | |
Is there a way to match images and determine which two match? The images are not exactly the same but are similar! | |
how OOPS concept playing roles in terms of compile time and run time polymorphism. how inheritance and encapsulation and polymorphism applied in real time application. when and where and how to decide this oop concept fit for this like java bean,interface,abstract,etc? | |
hi all, i've a major doubt.. i've a jsp page with combo box which is dynamically loaded with values from database.. how to include this page with anohter jsp page provided the dynamically loaded values must remain the same.....[code]hi all, i've a major doubt.. i've a jsp page with combo … | |
hey i m persuing b tech and i am a final year student. i need to know about some project titles coded in java and abstract about them in order to make it my final year project .plz give some direction. | |
//////////////////////////////////////////////// moving a .jar to sys dir ////////////////////////////////////////// Hello; I can make a .jar from my program and move it to a folder in my progject The Command to make the -cmf (non runnable) .jar works fine by adding the .jar to a folder in my project. but my question … | |
hey guys, I would like to know the syntax in Java for truncating variables of type Double. The code below is in Pascal and i would like to know how to write it in Java: x := trunc(y +7/h); | |
I need help converting this Pascal code into Java. My Pascal Programming abilities are limited so any help would be much appreciated. [ uses wincrt; const n=300; {1320 this is the max length possible} m=2; type table = array [1..n,1..m] of real; var data,data2 : table; i,j,card : integer; t0,X0,Y0,Xn,h,g1,g2,r1,r2,d,slope:real; … | |
Hi all, Welcome to Study Group 13 (SG13) ^_^ We are a group of people – mostly students – who are self-learners. We share the study materials (obviously online materials), help each other in debugging our codes, and give advice regarding programming or studying problems. Q&A: Q: What programming languages … | |
Hi all, First I would like to say how much I like the forum. I have recently started to program using Java and I have done a online tutorials from [URL="http://www.javavideotutes.com/home"]http://www.javavideotutes.com/home[/URL] and I now have a few questions: 1) What is a good book for me to get? 2) I … | |
I m a bit confused, that which book should i choose to prepare for SCJP 6 i.e Kathy Sierra or Khalid Azim Mughal and also needs some tips and links for complete prepartions. ...thnx a lot. | |
afaik, i know the overall concept about this. but i need to know any in depth difference between them. and how one is better than others? when and where it will be used ? | |
Is it possible to access a TCP server running outside our LAN through internet? I thought we could use the router IP Addess(which I got from whatismyip.com) in the class Socket Constructor[CODE] Socket(InetAddress address, int port) [/CODE]. But client wasn't able to find the server. Has anybody successfully achieved this … | |
I'm developing a web-program that needs to check a whole bounch of potentially faulty http-links. Now, I have found a way of doing this, the only problem is that it relies on try-catch, not in it self horribly bad, but the time it takes to check the links is extremely … | |
Hi i want to write an app that send text from one device to an other , how can i test it with emulator on pc ? is it possible with wtk ? thanks | |
Hey, all Java & JSP gurus, i'm developing a website using JSP and MS SQL. Can you please tell me the code to invalidate a session object i.e. the code for logout (to be written in JSP) Following is my code for creating session object, on login: [code=java]HttpSession ses=request.getSession(true); ses.setAttribute("Name",name);[/code] … | |
How to print Specific enum value from a loop?? I created a Two D array and accessing Enum values through it... I wanted to assign the 3rd enum value whose ordinal is '2' to the following rows and coloumn...[1][0] and [2][4] i tried this, DnP[1][0] = DnP [2][4] = Periods.Period1; … | |
Hey there! How do i read 2 files, one after another and then storing it into 2 seperate array? This is the code for reading 1 file. So, how do I read 2 files? The array would be a 3x3 2D array. [CODE]File dir = new File("1A6G.pdb"); //set file String … | |
Dear friends, I am facing problem to integrate facebook in my JSP application. I found a lot of help in PHP but I need in JSP. Please help me and give me some ideas. | |
afaik, string is immutable and string buffer is mutable. when we concatenate characters with string new string object will be created. but when we append string buffer it remains the same object. apart from these what are the key and other difference between them?. | |
Applications like browsers, etc. are written in Java, Python, etc. But when they are installed on a system that doesn't have Java or Python installed, how does it ensure that its code runs there ? Actually, I wanted to write a browser in Java with WebKit as engine. Since the … | |
Hi All, Is there a way to create a HTML file generated in browser in a JSP file? This same JSP file parsed by server and show up in a browser in HTML form and also save this HTML form to a HTML file on the server. The only way … | |
hi guys hope you can help well im tryin to connect my jsp to my database, im uisng tomcat 5 and have stored the MS access database in my ROOT folder. i have created a User DNS, and have sdk 1.4.2_08 installed Problem is im not sure what to do … | |
dear all, i have 2 tables. first table named std_table : [CODE] | ID_std | std_1 | std_2 | std_3 | std_4 | std_5 | | 115 | A | B | A | C | D | [/CODE] then i gave another table named cpr_table : [CODE] | ID_cpr … | |
Problem Statement The government of India has launched the UID project which aims to give a Unique Identification number to each Indian. The number is a randomly generated 16 digit number. To detect errors when typing in this number, we propose to use the last digit as a checksum. Following … | |
How to use build tool ant as i have never used any build tool and how is it better then just compiling and running our programe using javac and java. | |
I have tried a few different ways to to highlight the text in a jcombobox when it receives focus but none have work. Any have a code example that could help? Some examples I have tried: [CODE] private void fromComboBoxFocusFocusGained(FocusEvent event) { JTextField field = (JTextField)fromComboBox.getEditor().getEditorComponent(); field.selectAll(); } [/CODE] [CODE] … | |
Hi guys i have a problem with JScrollPane, Firstly i have 2 custom JPanel's i wanted to add them to a JSplitPane so i added them to a JScrollPane and then those JSplitPane but the problem is if i drag the divider in splitpane the panel doesnot scroll :'( Here … | |
Hi I am typically an ASP.NET programmer, and I am familiar with ASP masterpages. Because, I also know Java, I was handed a JSP project. I am looking for an equivalent to [B]asp:Content[/B] whereby I can wrap multiple lines of code/HTML between the open and close tag; for example like … | |
Tim sort, two way bubble sort How it Work? and Two way bubble sort how different nolmal bubble? Thank you for your help ? I doubt about it .. | |
Hi, I have downloaded a sample jms program from the below url and try to execute it in my system.But, it shows the below error.Can any one know how to execute the Jms programs in the system. [url]http://download.oracle.com/javaee/1.4/tutorial/examples/jms/simple/src/SimpleProducer.java[/url] Error: package javax.jms does not exist [code] import javax.jms.*; ^ SimpleProducer.java:90: cannot … | |
hello, i'm doing a project related to steganography and i need to know if there is any possible way to alter the value of red color of a pixel and keep other two(i.e green and blue) unaltered.. please help.. very much in need, regards, Pruthvi kumar | |
Hello everyone I m using java and ms access. I want to retrieve values from database into combo box. When I m trying to do this, only first value is getting displayed in combo box insted of list of all items. can you plz help me with the code? Thanx … | |
Hi experts, I have a click button called log off , here once a user clicks it , task goes to logout servlet to end current user session . below is my code , I don't know why it works fine with mozilla firefox and google chrom but not working … | |
Hi developers, I am doing an application regarding video search. I listed some video website such as youtube.com, aolvideo.com, vimeo.com, dailymotion.com etc. in checkboxes. I entered the search query and If I checked youtube only and leave the others, then it should call youtube website only. If I check both … | |
hye em new to java ...i have 15 days to learn it...after that i hav to pick my final year project...i hav gone through many tutorials but they are not enough....can any body hav some material to learn Java easily and quick...m using netbeans 6.7.1....n want a full command on … | |
guys i cant hit on the rite path...i love programming and i recently decided to go with java..but some people say that go with vb.net its better than java because its more demanding while i think that what ever you do,do it way that no way is better in that … | |
m doing MCA.i needed some project topics based on java swing | |
Having homework issues again. This code compiles but when I try to execute it it gives me an "exception in thread main java.lang.nosuchmethoderror main" Can anyone help me due tomorrow....Thanx [CODE] import java.awt.*; import java.awt.event.*; import java.text.NumberFormat; // used to format currency import javax.swing.*; import javax.swing.Icon; import javax.swing.ImageIcon; import javax.swing.JButton; … | |
how i can print something , i was write it in textarea , labele , any thing by printer alike word ? |
The End.