32,199 Topics

Member Avatar for
Member Avatar for Dragon55544

Hi new to the forum, so go easy :) Im very new to Java and im a little stuck... I have to create a program which uses classes and objects, all of the objects need to be stored in 1 array. So, i have a super class called Student then …

Member Avatar for quuba
0
84
Member Avatar for jalpesh_007

I have implemented RSA using java as shown below. mport java.math.BigInteger; import java.util.Random; class SimpleRSA { public static BigInteger p, q, N, v, k, d; public static void main(String[] args) { // p & q are prime numbers Random myRandom = new Random(0); p = BigInteger.probablePrime(512, myRandom); q = BigInteger.probablePrime(512, …

0
82
Member Avatar for prem2

Dear team, I want to implement jabber server and jabber client . Can any one provide the jabber tutorial or some other links about the jabber . Thank you, With Regards, Prem

0
54
Member Avatar for saifjunaid

hi im new to java...i want to add data in database from html form and applet plz help me..

Member Avatar for masijade
0
73
Member Avatar for arvindikchari

Hello, I am in the process of creating a software that automates submission of articles to article directories. As part of data entry work, all fields in the submission form (to submit article to article directory) are being noted, as also the form action and form-parameters. What I want to …

Member Avatar for Eric Cute
0
92
Member Avatar for minimi

[url]http://img195.imageshack.us/img195/6971/treeqg.jpg[/url] This is my tree.. one on the top is before and one on the bottom is after the change has been made.. did I do this correctly? Thank you in advance!

Member Avatar for hertze_bogdan
0
117
Member Avatar for PatrickE69

this is my final project for my java class. This is what im supposed to do::::: Write a program that can be used for reserving airline seats. You can use three algorithm building blocks (Sequence, Selection, and Iteration). The airline has 15 rows, with 6 seats in each row. Rows …

Member Avatar for hertze_bogdan
0
754
Member Avatar for ITjulz

Write a java program that computes of the long distance call. The following cost of the call is determined according to the following rate schedule. a. Any call started between 8:00 am and 6:00pm Monday through Friday is billed of a rate of $ 0.40 per minute. b. Any call …

Member Avatar for Random_Integer
0
267
Member Avatar for Aeonn

SO, I have been working on this Java program that is to emulate an ATM. I am having an issue with the program calling my functions. The code currently does not run. The user inputs 1,2, or 3 and the code breaks because I am assuming that the constructor is …

Member Avatar for Eric Cute
0
2K
Member Avatar for adr1817

Hi, I'm new to java and I have a homework. Below is my working code, however, I would like to have a loop in order to return to the menu for user's input. package mortgagecalc_cr2; [code] import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /** * * @author adr1817 */ public class …

Member Avatar for Eric Cute
0
243
Member Avatar for seanbp

My application freezes randomly with no error output. I've been beating my head over it's code and don't want to continue working on it until this problem is resolved. I'm thinking it's a synchronization problem. I've attached the source code. Any help would be greatly appreciated.

Member Avatar for seanbp
0
6K
Member Avatar for coding101

I have an arraylist that hold an array of object each which contain a "name". how can I sort the arraylist by name alpabetically?

Member Avatar for Eric Cute
0
87
Member Avatar for ITjulz

how to input time on JOptionPane on java?im sorry to bother you guys because im just a rokee student plz.help me..thanks...asap.

Member Avatar for Eric Cute
0
56
Member Avatar for samccarn

I have a project for my class in which I'm given 3 pictures, and have to do something "interesting" with them, I've decided to make a maze, one picture will be the background/the maze itself, one will at the exit, kind of like a mouse/cheese sort of thing, and what …

0
167
Member Avatar for suger

Hi guys Can anyone explain in logic how do mousemotion events drag something (eg. a shape) to move, in a pseudo code? Thanks a lot

0
63
Member Avatar for toaster_man

Hey guys im having a bit of trouble here, im not really sure what to do. So i need to make a method which checks these requirements: String must have at least eight characters.(Done) String consists of only letters and digits. String must contain at least two digits any idea's?

Member Avatar for JavaDad
0
121
Member Avatar for roro-

Ok it's all about to create 4 class Class a , class b derived from a and c derived from b and test class Speed is an instance variable in class b and c. The method are : Start() -a method of all class to print the message"hee" override the …

Member Avatar for roro-
0
246
Member Avatar for sid7

I am currently working on a web based application which requires database access in order to execute various sql statements. I can take these approaches: 1) Create a stateless DAO, i.e everything is static. Pros: I do not need to worry about thread safety / performance. Cons: Difficult to switch …

0
55
Member Avatar for robotlogik

hi. i need help for a problem. i have an array of double values in the main method. i am trying to create an object and pass the array to a different class using an overloaded constructor. i am having trouble with the syntax. please help, i need to use …

Member Avatar for robotlogik
0
192
Member Avatar for ProgrammerAl

Hello, I'm currently a student in college and to get right to the point - I'm having a problem with figuring out the logic of making the program. This is how I want my interface to look TOP - MasterMind : Probably JLabel CENTER - Where you set each guess …

Member Avatar for ProgrammerAl
0
1K
Member Avatar for sid7

Hello, I'd like to get people's opinion on the below. Let's say we want to create a constant mapping between int & String within our application. An obvious solution is to create an Enum with a getter() which returns the String based on a given int. However, we could also …

Member Avatar for sid7
0
2K
Member Avatar for musikluver4

I am just curious if anyone knows how to BEGIN to start the coding for telling the program to have a GUI with typical fields, labels, buttons, panels, etc in a GUI, and then when a user presses a button, it goes to a complete different GUI with brand new …

Member Avatar for musikluver4
0
5K
Member Avatar for xecure

Well I'll go straight to the point... I'm trying to recursively move through a binary search tree. I'm not really sure what is wrong with my algorithm (and I'm also pretty new to recursion) but this is what I have: [CODE] public boolean contains(BTreeNode<T> node) { return containsItem(root, node); } …

Member Avatar for xecure
0
133
Member Avatar for amit.hak50

Given that t1 is a reference to a live thread, which is true? A. The Thread.sleep() method can take t1 as an argument. B. The Object.notify() method can take t1 as an argument. C. The Thread.yield() method can take t1 as an argument. D. The Thread.setPriority() method can take t1 …

Member Avatar for ~s.o.s~
0
96
Member Avatar for muncher10

I'm just wondering how I can make the program print results right after inputing a guess.[CODE]import java.util.Random; public class Guess { private int z; private int x; private int y; private int toss; public Guess(int a, int b, int c) { z = a; x = b; y = c; …

Member Avatar for JavaDad
0
97
Member Avatar for jwmollman

Hi guys, I'm having some trouble with my Java homework, and I was wondering if any of you could point me in the right direction. I need to find a loop that will add all the whole numbers from 1 to 1000 and print only the total. I've been spending …

Member Avatar for kikovi
0
181
Member Avatar for kondeti ramesh

can i find the prime number using square root function and tell me how can i generate the prime numbers

Member Avatar for JavaDad
0
55
Member Avatar for LianaN

Hi! My JAVA+MySQL api worked fine yesterday, but today (when I try to connect to MySQL DB from remote machine) the fllowing erro is produced: [ICODE]Java Result: -805306369[/ICODE]. Although there is e.prinstachtrace() in my code, I received only this message. It happens here: [CODE] db = (Connection) DriverManager.getConnection("jdbc:mysql://" + url …

Member Avatar for LianaN
0
351
Member Avatar for tohobaby

i have write this layout but dunno how to write this 3 function in serializable...can u all help me? Y.Y this was the question: Write a programme to keep your friends telephone numbers. You should be able to; a. Add a new name and number b. Look up a number …

0
64
Member Avatar for kondeti ramesh
Member Avatar for quuba
0
84

The End.