36,051 Topics

Member Avatar for
Member Avatar for vaali

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 …

0
17
Member Avatar for majestic0110

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 …

Member Avatar for masijade
3
669
Member Avatar for Nobuo
Member Avatar for masijade
0
344
Member Avatar for Mongooseman

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 …

0
109
Member Avatar for llimewater

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 …

Member Avatar for Killer_Typo
0
178
Member Avatar for new_divine

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 …

Member Avatar for jon.kiparsky
0
337
Member Avatar for cbarton.a

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 …

0
85
Member Avatar for java..

i know the difference between interface and abstract. how it will differ in real-time application scenario. can you please explain with example?

Member Avatar for jon.kiparsky
0
217
Member Avatar for nocookies92

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 …

Member Avatar for nocookies92
0
132
Member Avatar for rogue005

Is there a way to match images and determine which two match? The images are not exactly the same but are similar!

Member Avatar for NormR1
0
75
Member Avatar for java..

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?

Member Avatar for java_programmer
0
199
Member Avatar for ben05

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 …

Member Avatar for parry_kulk
0
109
Member Avatar for priyanca

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.

Member Avatar for tong1
-1
344
Member Avatar for ceyezumma

//////////////////////////////////////////////// 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 …

Member Avatar for NormR1
0
109
Member Avatar for Turtle85

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);

0
92
Member Avatar for Turtle85

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; …

0
96
Member Avatar for chumky
Member Avatar for Ndoom

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 …

Member Avatar for popin
0
454
Member Avatar for Dom Chester

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 …

Member Avatar for tizon
0
99
Member Avatar for mayank.dyl

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.

Member Avatar for java_programmer
0
102
Member Avatar for KcNaveen
Member Avatar for musthafa.aj

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 ?

Member Avatar for java_programmer
0
209
Member Avatar for gunjannigam

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 …

Member Avatar for musthafa.aj
0
654
Member Avatar for Cort3z

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 …

Member Avatar for Cort3z
0
113
Member Avatar for mahdi68

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

Member Avatar for mahdi68
0
359
Member Avatar for nikk

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] …

Member Avatar for selvanandhini
0
2K
Member Avatar for Xufyan

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; …

Member Avatar for yasuodancez
0
1K
Member Avatar for hazeeel

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 …

Member Avatar for hazeeel
0
314
Member Avatar for mohammed2raja

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.

Member Avatar for mohammed2raja
0
108
Member Avatar for musthafa.aj

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?.

Member Avatar for zerocool21
0
147
Member Avatar for daudiam

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 …

0
41
Member Avatar for chitian5057

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 …

Member Avatar for javaAddict
0
160
Member Avatar for nelly_1005

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 …

Member Avatar for ernikhil
0
473
Member Avatar for mutawari

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 …

0
59
Member Avatar for kunalsankpal

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 …

Member Avatar for kunalsankpal
0
115
Member Avatar for mayank.dyl

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.

Member Avatar for peter_budo
0
134
Member Avatar for cjmartin

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] …

Member Avatar for cjmartin
0
503
Member Avatar for tizon

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 …

Member Avatar for tizon
0
1K
Member Avatar for jefftanner

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 …

0
46
Member Avatar for fullgl

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 ..

Member Avatar for java_programmer
0
111
Member Avatar for prem2

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 …

Member Avatar for prem2
0
5K
Member Avatar for pruthvikumar

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

Member Avatar for madhumvl
0
301
Member Avatar for amu25

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 …

Member Avatar for rucha.cool4
0
3K
Member Avatar for alsoumhi

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 …

0
82
Member Avatar for yuvi2288

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 …

0
106
Member Avatar for ryathegr8

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 …

Member Avatar for ryathegr8
-1
150
Member Avatar for extemer

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 …

Member Avatar for new_programmer
0
113
Member Avatar for santiagos
Member Avatar for Lusiphur
0
42
Member Avatar for soundman107

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; …

Member Avatar for NormR1
0
111
Member Avatar for blueman:-0

how i can print something , i was write it in textarea , labele , any thing by printer alike word ?

Member Avatar for blueman:-0
0
69

The End.