35,618 Topics

Member Avatar for
Member Avatar for ramjeev

Can u suggest any better link for datastructure that explains with diagrams?It would be good,if any basic level explanation with algorithms.

Member Avatar for ramjeev
0
76
Member Avatar for frankycool

I have an arraylist As such :- products.add( new CarsSubProduct( "FordMustang",1,1000,10000 ) ); FordMustang is Car name 1 is Car number 1000 is total number of cars in stock 10000 is price per car I will like to Store it to access database or excel.Please how can these be done.

0
74
Member Avatar for kettavan

Hi guys, I need some help regarding JComboBox. I want to link the JComboBox with JTextField and this is the code that i did. It contains error and I need some guidelines for it.Thx [code=Java]private void typeof_patronJComboBoxitemStateChanged(ItemEvent event) { // clear JTextFields clearComponents(); // determine whether checkbox selected if (event.getStateChange()== …

Member Avatar for kettavan
0
87
Member Avatar for starlight09

Hi everyone, My goal is to generate lottery numbers that have 6 unique numbers in the range of 1-49 ex. if the user inputs 2 as the number of tickets they want, the program should print out 1 2 3 4 5 6 10 9 8 7 12 11 ---2 …

Member Avatar for starlight09
0
621
Member Avatar for javanub123

hi, i have a lab monday which requires me to generate random sized squares random poinst. im not to familiar with the random class and the syntax and all that but im guessin i need to use a for loop. if someone can just point me in the right direction …

Member Avatar for javanub123
0
1K
Member Avatar for javanub123

im trying to make my program draw lines from the top right corner of the JFrame which is 400 x 400, to the bottom of it making what looks like a curve but really is just lines. i think i know the basic idea of how to do this which …

Member Avatar for javanub123
0
1K
Member Avatar for jlperry_2009

I am having a problem understanding how to sort a set. I have read the Big Java book, and I still don't understand how to do it. Could someone please assist. [code=JAVA] /* * To change this template, choose Tools | Templates * and open the template in the editor. …

0
62
Member Avatar for gshockneo

Hi Actually i require that as soon as a jsp gets loaded , An Aglet is created and dispatched to remote site. I am able to do dis directly in java..but how to do it through jsp page. Plz help

0
60
Member Avatar for d7o0om

hey, how's everyone, i need help with a java program, i'll appreciate any help. i'm need to write a program in java that will test if the input is a Palindrome or not. i found a couple of programs, but they use a (do-while) loop which i'm not allowed to …

Member Avatar for Ezzaral
1
353
Member Avatar for hmpargi

hi , If every one know [url]http://en.wikipedia.org/wiki/Instant_Insanity[/url] I want a java program in which there will be 50 different colours and 50 boxes. Thank you, Hardik

Member Avatar for Ezzaral
0
33
Member Avatar for Ishaniwp

Hi! I'm having a problem with my coding. I have initialized a 2d array (String), but when I try to print a value from it, it gives me null. this is how I initialized my array. [code]String phone[][] = { {"A", "B","C"}, {"D", "E", "F"}, {"G","H", "I"}, {"J", "K", "L"}, …

Member Avatar for Ishaniwp
0
98
Member Avatar for kjiu

Hj, I have a problem how to do the print. example: I need to print a file. Kjiu

Member Avatar for kjiu
0
77
Member Avatar for _dragonwolf_

This code works fine so far... except for my "isPair()" function. It gives me the following error: Exception in thread "main" java.lang.NumberFormatException: For input string: Any help solving this issue would be great. I am trying to get the program to read poker hands and print out what it is. …

Member Avatar for thines01
0
136
Member Avatar for ladybritt

[code]public Product findProduct(Product searchProduct) { Product found = null; for(Product item : stock) { if(item.id == searchProduct.id) {found=item; break; } } return found; }[/code] The error code reads: id has private access in Product. I am new at this and do not know how to write it correctly. Thank you, …

Member Avatar for quuba
0
66
Member Avatar for Ying_Yang

Hi, I like the modularity of java but I wonder what low level custom functions it has, since I' am considering to create an OS, and we all know in high level its imposible to control the hardware eficiently. :-/ so I wonder if there is a way to use …

Member Avatar for Ying_Yang
0
213
Member Avatar for Vikings1201

I am trying to complete a circular linked list add method but I am having difficulty understanding how to. I wrote the above link list add method. I know that a circular linked list, somewhat. Here is what the add function is suppose to do: Any suggestion on how to …

0
54
Member Avatar for feinbaby

The problem question is, add a close method to the Auction class. This should iterate over the collection of lots and print out details of all the lots. You can use either a for each loop or a while loop. Any lot that has had at least one bid for …

Member Avatar for feinbaby
0
372
Member Avatar for jnthn205

Im writing this in netbeans. Here is the code: /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package accounttoolssilverberg; /** * * @author Administrator */ public class accountToolsSilverberg { double a[]; int i; public accountToolsSilverberg() { a = new …

Member Avatar for jnthn205
0
88
Member Avatar for dj_dan23

Hi! All I would like to have a way to do my application using a simple way. I have a genealogy site, since a long time ago. I have near 10,000 pages (10,000 names) on a free hoster. Everything works fine. But I'd like to do the conversion from my …

-1
50
Member Avatar for feoperro

Hi, I'm trying to create a program where I can monitor when a server running a Tomcat Application Server goes down. I will need to check an IP & PORT every 5 minutes for example and get back a boolean on whether it is up or not. I've tried googling …

Member Avatar for feoperro
0
118
Member Avatar for P00dle

I need to read files from a folder(Directory will always be the same) There will at most be 4 files in the dir, but it could be anything from 0-4 files. They will always have the same name. i.e. In the dir "Folder" there will be(Could be any combination of …

Member Avatar for peter_budo
0
113
Member Avatar for Ghost
Member Avatar for wregan
-2
173
Member Avatar for rigidboss

Hello All... I have a requirement to create a chat forum.. I cannot use php or other related stuff. I'm not provided with database even.. My idea is that I can use java applet to create a chat window... What ever post which when given, it will be saved in …

Member Avatar for rigidboss
0
113
Member Avatar for ttchiwandire

Guys how can I set up my environment so that I can write, compile and run my java console applications. Please If u can take me from the baics help me out..

Member Avatar for jbennet
0
101
Member Avatar for meenakshi chorg

hey people, I am looking for a tool which can parse english like test and generate output as test cases..please take this into consideration and help me with your suggestion... thanking you, meenakshi.

Member Avatar for P00dle
0
67
Member Avatar for Ryujin89

I have nearly all of the code figured out, but the instructions make getting the output and variables to match up. If anyone can assist in seeing what the instructor intends for us to do, I would greatly appreciate it. This is a multi-class program where an abstract class implements …

Member Avatar for Ryujin89
0
13K
Member Avatar for vsanandan

Hi, I am learning JSP now. The following program doesn't work in my Linux system's Mozilla firefox. Any help to fix this problem is appreciated. [code=JSP]<html> <title>Using JSP EL Operators</title> <body> <h2> Using JSP EL Operators</h2> <table border ="2"> <tr> <td> 13 + 2 = ${13 + 2} </td> </tr> …

Member Avatar for vsanandan
0
300
Member Avatar for eleal

I've got two threads running, one of them executes the following piece of code (it reads and writes to a socket): [CODE] while ((fromServer = in.readLine()) != null) { System.out.println(fromServer); fromUser = stdIn.readLine(); if (fromUser != null) { out.println(fromUser); } else{ break; } }[/CODE] where in and out are BufferedReader …

-1
58
Member Avatar for DrDeadite

I'm trying to add a memory function, that when you hit the 'M' button, it stores whats in the display into a variable, and when you hit the 'R' button, it retrieves the variable value and displays it and can be used for calculations. Here's my code: [CODE]import javax.swing.*; import …

Member Avatar for DrDeadite
0
121
Member Avatar for matt547

Hiya, im new to this site but it seems like a very useful comunity :) Im new to java programming as well and i have to write a class file to deal with calculating the maximum, minimum, average(mean), population variance and sample variance from an array which is entered by …

Member Avatar for brownjohn
0
172

The End.