32,204 Topics

Member Avatar for
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
204
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
649
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
111
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
357
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
288
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
144
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
38
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
111
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
132
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
497
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 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
109
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
275
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 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
147
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
109
Member Avatar for santiagos
Member Avatar for Lusiphur
0
40
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
109
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
66
Member Avatar for burgercho

I am making an application for blackberries and wanted to make use of touch capabilities on touch capable phones. Is there a way to do this without making two separate projects (like I would in c with preprocessors that check the compiler)? An idea of what I'm trying to do …

Member Avatar for burgercho
0
190
Member Avatar for enazi

Hello guys ; I have a question in java . is it possible to great a method in java program that : if ( user press "Enter" ) do some thging I tried this simple examples , but dosn't work with me [CODE] Scannaer in = new Sccanner (System.in ) …

Member Avatar for enazi
0
2K
Member Avatar for nocookies92

I'm trying to create a string array, but the compiler keeps giving me an error message on the lines I assign a value to each index of the array. Here's the code: [CODE]String[] greeting = new String[4]; greeting[0] = "Why, Hello there!"; greeting[1] = "Welcome."; greeting[2] = "blah blah blah"; …

Member Avatar for nocookies92
0
120
Member Avatar for aditya027

class Superclass { void display() { System.out.println("Super"); } } class Sub1 extends Superclass { void display() { System.out.println("sub class1"); } } class Sub2 extends Sub1 { void display() { System.out.println("Sub class2"); } void display2() { System.out.println("Second method"); } } public class reference { public static void main(String[] args) { Superclass …

Member Avatar for aditya027
0
111
Member Avatar for jiraiya

Hi everyone, I'm having a little problem I'm sure someone can help me with. I'm trying to read in 10 png images and save them in an ArrayList as BufferedImage objects (I think this is the right way to go about it but if not plaease say so). Here is …

Member Avatar for jiraiya
0
2K
Member Avatar for new_programmer

I want detailed explanation about static int var; final int var; static final int var; Please explain it in the memory implementation level. If there is any mistake in these please explain. __________________

Member Avatar for masijade
0
422
Member Avatar for tinanewtonart

Hello everyone, I am a semi-amateur web designer/programmer, however I am confused with the designing/coding of tumblr blogs, could someone help me code it. I want a two column design, one side for content with a header, the width of the content/ header will be 500px There will be a …

0
123
Member Avatar for VJTechno

Hello Friends, I was reading about the orthogonality and it's advantages. Then heard something like "Java is an Orthogonal Language". Can anyone explain me what do we mean by a particular programing language being orthogonal? If I am using Java for development of my application, does it imply that my …

Member Avatar for VJTechno
0
600
Member Avatar for simranjit kaur

ah i am I.T 2nd yr student making my project in core java.Can any one tell how to make event in mind fiddler game (e.g kbc). can any one give me codification in making my project get started.plzzzz results needed...

Member Avatar for peter_budo
0
132

The End.