32,204 Topics

Member Avatar for
Member Avatar for drizkol

Here's the problem; I need to write a recursive function that outputs permutations for a given input n; such that the output looks like: Given n=3, you'd get. . . empty set 1 1 2 1 3 2 2 3 3 1 2 3 The order in which the subsets …

Member Avatar for chrisbliss18
0
78
Member Avatar for Dark Master

hi forum, yesterday i posted a question regarding removing duplicate objects in arraylist and looking at the replies it seemed to me that hashset will be a better option than arraylist.problem is that i want the contents to be itearated strictly in order of their insertion, but the books say …

Member Avatar for jwenting
0
91
Member Avatar for xinix

Hi all, I want to begin programming in either Java1 or Java2 (probably Java2 as it is the more recent). Are there any free Java2 compilers on the internet (like the Bloodshed C++ compiler) I could download? Thanks

Member Avatar for fiberoptik
0
176
Member Avatar for kbradley

Hello Everyone, I am sorry to post this in the java forum but I was not sure where to post this so if you know of a better place in here, let me know. I already tried the computer and engineering forum and I figured Java people would know Matlab. …

0
50
Member Avatar for smitha

Hi, As I have not succeeded in making JMF show live broadcasts of MPEG 4 format ,I thought of trying out Quicktime player,as here too we have quicktime for java.So after installing,I entered the url as rtsp://myserverip/mpeg4/1/media.amp Thus i got the response...Connecting...Buffering and then Showing Live Broadcasts.. But still I …

0
77
Member Avatar for perlsu

Hi I got runtime error as "Exception in thread "main" java.lang.OutOfMemoryError: Java heap space ". How can I solve this problem? Can anyone explain me why this problem occurs? Thanks in advance.

Member Avatar for jwenting
0
64
Member Avatar for server_crash

Let's say I have 5 applets on the same page. How does the JVM respond to that? Will a new implementation be created for each applet, or does each applet share the jvm? Also, is there some priority, like the first applet added will be the first loaded? Hope that …

Member Avatar for jwenting
0
88
Member Avatar for glamo

:!: :!: :!: i am trying to make a chat applet ,first problem is that it is working for only single system,i want to know how to connect it with network and second there is some problem in my code it os showing some error which i am unable to …

Member Avatar for freesoft_2000
0
86
Member Avatar for deineMutti

Hola, I'm working on a personal-organizer applet and I'm having trouble saving my to-do lists. I want to save a vector that contains my table data as an object (don't feel like playing with text) and I'd like to save to the folder in my webspace where all of the …

Member Avatar for freesoft_2000
0
245
Member Avatar for Dark Master

hi forum, i m developing a simple web crawler in java.upon entering an URL, the crawler downloads the corresponding web page and continues this process.but i m having problem in accessing web pages which are redirected to a diferent URL.one such example is [URL=http://www.telegraphindia.com]www.telegraphindia.com[/URL] ,in which a new part gets …

Member Avatar for chrisbliss18
0
103
Member Avatar for Ghost

Hi Everyone, Is there a way to make your own remote connection program (just for my use - at least fo now)? Something like goToMyPC. Any suggestions would be appreciated. Also, is this easier to do in PHP/HTML? Thanks in advanced.

Member Avatar for jwenting
0
103
Member Avatar for Blazer

Hi everyone, I require some help for this project I am currently working on. Basically what I have to do is read from two text files, then calculate some numbers from both files (eg: add the numbers and average them) and after that, write the results to a another file. …

Member Avatar for boyzz
0
179
Member Avatar for kokopo2

Hi, pple im interested to know how to put a drawn 'image', a combination of a circle and a line into another class? If i like to draw that 'image' in the void paint() method multiple times, e.g 10. How should i go about doing it? Below is a sample …

Member Avatar for kokopo2
0
102
Member Avatar for gaborm

Hi Guys, We are trying to create a little servlet in Tomcat, which is capable to send audio files over http to an embedded media player. The definition of the player looks like: ... <OBJECT ID="Mp" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" TYPE="application/x-oleobject" WIDTH="0" HEIGHT="0"> <PARAM name="uiMode" value="none"> <PARAM NAME="ShowControls" VALUE="0"> <PARAM NAME="AutoStart" VALUE="1"> <PARAM …

Member Avatar for chrisbliss18
0
211
Member Avatar for Chipsncoke

I am working on a parsing a file . This is my problem. There are classes and subclasses. Classes/Subclasses are defined by attributes. The sub classes will inherit the attributes of its super class. For example: Employee(attrbts: name, salary) [INDENT]manager(attrbts: responsibilities)[/INDENT] [INDENT]clerks(attrbts: department)[/INDENT] Emp is a class with manager nd …

Member Avatar for chrisbliss18
0
375
Member Avatar for hitesh_black

can any body help me to find cool topics for miniprojects in SWING like text editor or.....

Member Avatar for freesoft_2000
0
128
Member Avatar for kharri5

Greetings again forum goers! I have another question abound with plenty of obvious nooble errors I'm sure. I am making a memory game(You know the old game where you turn over cards and try to match two in a row, and memorize previous locations etc. ) and this is the …

Member Avatar for kharri5
0
100
Member Avatar for Dark_Omen

Hey, I am trying to install the Java sdk on my computer. I downloaded the newest version 5.0_04 and I installed it. It seemed to work up until the end when an error came up, saying it didn't install properly. Here is the error, "Java update cannot retreive version information …

Member Avatar for Dark_Omen
0
242
Member Avatar for shuchi_jain

[B]Please let me know that what's the component heirarchical structure, i.e, what comes first ...........window then applet or frame is pasted, then comes panel ,after that all GUIs. If I m wrong then plz tell. If I m right then also reply me, I am still confused[/B]. :confused:

Member Avatar for jwenting
0
241
Member Avatar for DWk

Hello, I'm using Java SDK 1.5. I'm trying to compress an 8-bit grayscale BITMAP using Run-Length-Encoding, using lists. Can someone help me out?

0
59
Member Avatar for brianb7590

hey im new to this forum and new to programming and i got an assignment for a sales ticket generator and i clicked compile and it said variable burger might not have been initialized please help.... import TerminalIO.KeyboardReader; public class Resturant { public static void main (String [] args) { …

Member Avatar for boyzz
0
247
Member Avatar for kharri5

I'm new to swing, and was curious if anyone could point me in the right direction here. Cannot figure out how to make this repaint crap work, or if I'm supposed to be using repaint(), or what, to make this image get drawn to the background of my window. Here …

Member Avatar for kharri5
0
2K
Member Avatar for perlsu

Hi I want to replace "ta,at,an,bc" in main string {ta,at,an,bc,ta,at,an,bc,ta,at,an,bc,ef,ta,at,an,bc,ta,at,an,bc" with (ta at an bc)*.The result array should be "(ta at an bc)*,e,(ta at an bc)*". Can anyone give me some hint? Thanks in advance.

Member Avatar for NPH
0
159
Member Avatar for Rearden

First, I am running on linux and when i use the java command to run a program (i.e. java foo), it just sits after it finishes. how can I get it to fully close(specifically, the program I am posting at the end of this post) Second, is there an equivalent …

Member Avatar for Rearden
0
152
Member Avatar for nspireing

I am looking for a way to create a menu bar with java ive found a few really good programs that basicly wusiwug a menu bar for you but implementation and the trial version only that comes up and blocks your options is annoying. i even willing went to the …

Member Avatar for server_crash
0
162
Member Avatar for katew

i am having a problem to store the item and call from it.It is like you already created a text file,then you need to assess item from it.the item is in disorder. :sad:

Member Avatar for katew
0
283
Member Avatar for perlsu

Hi I got the error for possibleseq array . The error is java.lang.NullPointerException. As java doesn't support pointer, when want to use dynamic array, how I can use. The array length cannot know exactly . It depends on the possible subsequences. So, Do I count the possible sequences in advance …

Member Avatar for perlsu
0
128
Member Avatar for boyzz

how to store the data read from the txt file, and store it into different array? for example, name,age,address i know how to read them differently, but don know how to store it... :cry: FileReader fr = new FileReader("abc.txt"); input = new BufferedReader(fr); line = input.readLine(); while (line != null) …

Member Avatar for boyzz
0
325
Member Avatar for perlsu

Hi I need to find the repeated substring in string with repeated times = 2. Can anyone help me some hint? Thanks in advance. e.g, input string = abcdcbcbcada repeated string with repeated times 2 = bc

Member Avatar for chrisbliss18
0
102
Member Avatar for vjw757

im about to sign up for some college classes.. one is either going to be java or c++ for beginner. I dont know anything about these languages. Can you guys help me choose?

Member Avatar for chrisbliss18
0
431

The End.