32,199 Topics

Member Avatar for
Member Avatar for iamthwee

Ok, I've been looking through some of the older threads and noticed some bad things regarding vectors. So what's the deal. Are they worth using in java or should I avoid them like the plague? And if I should, what should I be using instead? The same questions applies to …

Member Avatar for aniseed
0
247
Member Avatar for Mishac

can any one help me with the code for the pop & push methods in the class that implement a Stack with two Queues

Member Avatar for aniseed
0
110
Member Avatar for Zxenobia0

I need help working on my Java project. Any amount is welcome. The project needs to prompt the user for a file input (txt), file output, and five words to search through the input file. Each input needs to be equipped with try and catch code to prevent crashing. The …

Member Avatar for Phaelax
0
149
Member Avatar for mperkins07

Can you help me wlth the following work?: This sample program shows how to print the current month, now using the "Calendar" object (instead of the Date object which has been deprecated, meaning it has been slated for removal from the language). [code]// Program prints the current month import java.util.Calendar; …

Member Avatar for Phaelax
0
151
Member Avatar for sunny82

Hi, I am getting 3 similar types of errors.its saying illegal start of expression in public void makedeposit<int deposit>,public void makewithdraw<int withdraw> and public void showbalance<int a, int balance>{} plz help. here is my code--- [code]public class bank { bank b; public class output{ public output outputobject=new output(); } public …

Member Avatar for sunny82
0
192
Member Avatar for nabil1983

hello. Im having problems trying to get my jframe gui to work correctly i got the window all done fine but when i tell it to display somethis in the code , it comes up with errors when compiled. Can someone please tell me where im going wrong .. apreciate …

Member Avatar for DeepZ
0
183
Member Avatar for K.Duncan

I'm working on a fairly basic program and can not seem to get it to work. I've checked my spelling and all that; the only thing I can think of is my main isn't able to find my class file. Here's the error message: ComplexDemo.java:10: cannot find symbol symbol : …

Member Avatar for DeepZ
0
165
Member Avatar for monisola
Member Avatar for Mishac
Member Avatar for monkeyphonics

Ok this is a homework program and this is my first JAVA course I am stuck on how to pass double values from one method to another I have a menu that appears with this code [code] public static int menu(int curmenuselection, double curitemprice) { while(curmenuselection != 5) { double …

Member Avatar for monkeyphonics
0
153
Member Avatar for mohamad11

hi to all... Plz i wnt a valuable code to append two text files in java i tried alot using WriteBuffered and FileOutputStream(file,true) but without any use i wrote the following code: import java.io.*; public class append{ public static void main(String[] args) throws IOException { FileInputStream Message_File=new FileInputStream ("C:/JBuilder4/lib/input6.txt"); BufferedReader …

Member Avatar for jwenting
0
854
Member Avatar for moon_light

i ve Q which ask me to write method called nodelevel(int k ) which returns how many nodes in level k.. and i write a code but i dont know what is wrong with it ??? [code]public nodelevel(int k){ if(root == null) return 0; else return getnodelevel(root, 1); } private …

Member Avatar for jwenting
0
200
Member Avatar for sam1

hi, which one of these two would be better to design a file transfer protocol FileInputStream or FileReader? i know FileInputStream is meant to be for image type of files........ thanks

Member Avatar for jwenting
0
243
Member Avatar for gkakkireni

Hi to all i have requirment like this the field length is 15 digits but am getting input only 6 digits..means i have to put spaces after the 6 digits position menas spaces after the value.how to do it in java,could u send the sample programe because i dont know …

Member Avatar for vimal_parakhiya
0
81
Member Avatar for behrk2

Can someone please help me convert the following code to C? I am just learning C and this is too overwhelming... the java code basically reads in a file (specifically for this program, a text file or whatnot for assembly language code), and the program is a pretty printer which …

0
80
Member Avatar for bondito

Hi everyone, i am trying to use some java code to encrypt passwords entering a database on the system i am building, please could someone explain what the code below is doing and if it would be useful for encrypting passwords. Thanks [code]import java.util.StringTokenizer; public class Encryption { public static …

Member Avatar for hooknc
0
480
Member Avatar for sam1
Member Avatar for iamthwee
0
66
Member Avatar for peter_budo

I have already working client-server messenger which is using threads. I can easily do plaintext username and password but I wish to use encryption on password. How can this be done?

Member Avatar for peter_budo
0
139
Member Avatar for Forsal

Hi everybody Can you please explain me the weakpoints of c++ language? I think it is very difficult to create GUI in C++, isn't it? I also would like to know is there any method to combine C++ program and Java Program.

Member Avatar for Ancient Dragon
0
233
Member Avatar for LEGACYONE_2006

I am trying to get this program to return the index value of the number that is input by the user. It is currently returning whatever number the user inputs. [code] import java.lang.Math; import java.util.Scanner; class Arrays { public static void main (String [] args) { int A[]= {3, 1, …

Member Avatar for LEGACYONE_2006
0
113
Member Avatar for wanda

I need help writing pacman with NGP for a school lab. I just started with java. I am NOT trying to have the project written for me, just need help getting started. There are two classes and an interface we need to use listed on the site below. The game …

Member Avatar for wanda
0
149
Member Avatar for Phaelax

I'm using a JEditorPane and StyledDocument, which automatically wraps text to the window. I cannot have this, I need the window to allow horizontal scrolling of the text. I've been all over yahoo and google and cannot find an answer on how to disable word wrapping. And before anyone tells …

Member Avatar for server_crash
0
186
Member Avatar for Dibrowse

I am having a problem with my browser. When I click on a link, a javescript error or void/null page appears. I downloaded pc onpoint, thinking that would help. It helped some, but not exactly what I was looking for. I am still getting these javascript error pages. If there's …

Member Avatar for server_crash
0
56
Member Avatar for ganesh.vadivel

Hi all, this is ganesh,working on struts,like to clear my doubt in struts. My coding is : ActionErrors errors = new ActionErrors(); errors.add( ActionErrors.GLOBAL_ERROR,new ActionError("err.nodatafound")); saveErrors( request,errors); this coding is working fine but it shows waring named as "deprecation" ,letme know how to clear this,thanks in advance. hereby, ganesh.

Member Avatar for Phaelax
0
96
Member Avatar for Phaelax

Does anyone know how the compareTo() in TreeSet is implemented? I needed a sorted list of String elements and was going to use a binary chop method to find if a search key was in the list. Is this how the TreeSet does it already? Reason I'm asking is because …

0
68
Member Avatar for peter_budo

I'm trying to create a login for clients to server based on three way handshake. Client send his username in synchrinization to server, server acknowledge and send random encryption string to client with request for password, client encrypt password and send over to server. If password ok connection established. I'm …

Member Avatar for Phaelax
0
186
Member Avatar for rabidpanda

Well, I'm working on the hangman program. We were told to do it with three classes, a hangman class, an interface class and a tester class. I got the program working at school last night, but when I loaded it at home, it doesnt compile right. The hangman class will …

Member Avatar for rabidpanda
0
184
Member Avatar for bondito

Hi Everyone, i am trying to use an encryption class to encrypt pasword characters, i have modified the encryption class correctly, but i am getting an unreachable statement error and a missing return statement error. Pls could any one tell me what the problem might be with the code. Thanks …

Member Avatar for server_crash
0
167
Member Avatar for Stewie

Hello, I am very new to java so my question might seem stupid :p anyway I am in a class where we are makeing a patron loading system for a library (every one else in the class is new to java also :) ) we have our basic form built …

Member Avatar for iamthwee
0
323
Member Avatar for erez131165

I realy need this script: [URL="http://www.jscode.com/js_auto_bookmark.shtml"]http://www.jscode.com/js_auto_bookmark.shtml[/URL] unlike a regular bookmark, it grabs automaticly the page url & title to be added. one problem: i just dont know how to make the link to the script as a picture, insted of "bookmark us!" text. any help with this please?:eek:

Member Avatar for tgreer
0
195

The End.