Click here to Skip to main content
15,911,891 members
Home / Discussions / Java
   

Java

 
AnswerRe: Access Problem with different classes and instances Pin
Cedric Moonen11-Dec-09 4:43
Cedric Moonen11-Dec-09 4:43 
AnswerRe: Access Problem with different classes and instances Pin
TheRainer11-Dec-09 7:05
TheRainer11-Dec-09 7:05 
QuestionBack Button on popup window doesn't work in IE Pin
sam#2-Dec-09 0:46
sam#2-Dec-09 0:46 
AnswerRe: Back Button on popup window doesn't work in IE Pin
David Skelly2-Dec-09 0:55
David Skelly2-Dec-09 0:55 
QuestionOutput error for Avl tree Pin
vtsmokey881-Dec-09 19:14
vtsmokey881-Dec-09 19:14 
AnswerRe: Output error for Avl tree Pin
vtsmokey881-Dec-09 20:04
vtsmokey881-Dec-09 20:04 
GeneralRe: Output error for Avl tree Pin
Nagy Vilmos1-Dec-09 21:40
professionalNagy Vilmos1-Dec-09 21:40 
QuestionBakhshali Approximation for finding the square root of a number..? Pin
silentbob03211-Dec-09 14:27
silentbob03211-Dec-09 14:27 
Can anyone get this to work?

Goal: This program will implement Bakhshali Approximation for finding the square root of a number. The algorithm to approximate the square root of N is

1. Start with the initial approximation of 1.
2. As long as the approximation isn’t close enough, use a while loop to repeatedly refine the approximation using the following formulas

d = N – (initial approximation)^2
P = d/(2 * initial approximation)
A = initial approximation + P
new approximation = A - P^2/(2*A)


(What does “close enough” mean? For your program, you’ll take close enough to mean that )
∣newApproximation-oldApproximation∣<. 0001∗N)
Other features:

If the user types a negative number, he/she should be alerted that only nonnegative numbers are acceptable.
Your program should correctly compute the square root of 0, which is 0.
There should be a Clear button to clear both the text box and textarea.

Any help with be greatly appreciated!!
AnswerRe: Bakhshali Approximation for finding the square root of a number..? Pin
Nagy Vilmos1-Dec-09 21:47
professionalNagy Vilmos1-Dec-09 21:47 
AnswerRe: Bakhshali Approximation for finding the square root of a number..? Pin
Richard MacCutchan1-Dec-09 21:48
mveRichard MacCutchan1-Dec-09 21:48 
QuestionHow to make Swing GUI stable in GridBagLayout Pin
don Moen30-Nov-09 19:20
don Moen30-Nov-09 19:20 
AnswerRe: How to make Swing GUI stable in GridBagLayout [modified] Pin
LunaticFringe2-Dec-09 2:45
LunaticFringe2-Dec-09 2:45 
GeneralRe: How to make Swing GUI stable in GridBagLayout Pin
don Moen2-Dec-09 19:57
don Moen2-Dec-09 19:57 
Questionjava effects Pin
ammu2328-Nov-09 5:23
ammu2328-Nov-09 5:23 
AnswerRe: java effects Pin
Richard MacCutchan28-Nov-09 5:52
mveRichard MacCutchan28-Nov-09 5:52 
AnswerRe: java effects Pin
scottgp28-Nov-09 11:09
professionalscottgp28-Nov-09 11:09 
QuestionEmbedding Pentaho Dashboard into my web application in struts 1 Pin
Vivek Vijayan27-Nov-09 17:43
Vivek Vijayan27-Nov-09 17:43 
AnswerRe: Embedding Pentaho Dashboard into my web application in struts 1 Pin
Richard MacCutchan27-Nov-09 22:03
mveRichard MacCutchan27-Nov-09 22:03 
QuestionWrite XML Attribute Pin
toby3127-Nov-09 13:02
toby3127-Nov-09 13:02 
QuestionA Web Crawler code...help Pin
sangeeta200927-Nov-09 2:23
sangeeta200927-Nov-09 2:23 
AnswerRe: A Web Crawler code...help Pin
Richard MacCutchan27-Nov-09 2:32
mveRichard MacCutchan27-Nov-09 2:32 
GeneralRe: A Web Crawler code...help Pin
sangeeta200927-Nov-09 2:54
sangeeta200927-Nov-09 2:54 
GeneralRe: A Web Crawler code...help Pin
Richard MacCutchan27-Nov-09 3:55
mveRichard MacCutchan27-Nov-09 3:55 
GeneralRe: A Web Crawler code...help Pin
Nagy Vilmos27-Nov-09 4:12
professionalNagy Vilmos27-Nov-09 4:12 
GeneralRe: A Web Crawler code...help Pin
Richard MacCutchan27-Nov-09 5:13
mveRichard MacCutchan27-Nov-09 5:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.