36,051 Topics

Member Avatar for
Member Avatar for islam-morad

Hello guys, i'm studying the Java programming language. every thins were going very well, but once i have encountered RECURSION i started to feel so bad. there is a recursive method that is blowing my mind. I can't figure out how does it print that the sum of a set …

Member Avatar for islam-morad
0
132
Member Avatar for shinnie

i'm writing a Java program that ask the user to input words using JOptionPane.showInputDialog() Then look at each letter in the word and add up the points for each letter. Vowels (a,e,i,o and u) are valued at zero.The letters "x" and "q' are valued at 5.All other are 1.Anything not …

Member Avatar for JamesCherrill
0
222
Member Avatar for marketingmaniac

The unfollow button is written in Java does anyone or can anyone programmaticly click the unfollow button? tried everything i know, visual basic, Java, JavaScript,, you name it,, cant do it.

Member Avatar for peter_budo
0
67
Member Avatar for Polvos Elvira G

good morning i would like to ask about photo gallery codes in java...thank you...

Member Avatar for peter_budo
0
51
Member Avatar for GooeyG

An account has the properties account number, balance, annual,interest rate, and date created, and methods to deposit and withdraw.Create two sub classes for checkings and savings account.Checkings account has an overdraft limit, but a savings account cannot be overdrawn. One problem that i'm having is that when I withdraw x …

Member Avatar for JamesCherrill
0
12K
Member Avatar for peter_budo

Ahh, long time since I was on pposting end :D Ok here it goes. The code bellow show mobile application that takes string from user and past it on to servlet. Servlet read it add extra data on front of message and send it back to mobile device that display …

Member Avatar for peter_budo
0
246
Member Avatar for terzenta

I'm working on a basic "banking" program. The most recent change I've made to it is to use inheritance so that instead of just an Account, you can make either a checking or savings account specifically. Everything is working fine, except that the checking account is supposed to have a …

Member Avatar for terzenta
0
119
Member Avatar for laddu2098

[COLOR="Green"]hello every one hi i am new to daniweb i think i will find a solution in daniweb. hi i wanted to change my php melody1.6.4 url structure my url structure is like this [url]http://example.com/frozen/frozen-2010-movie-video_1c4063b5a.html[/url] i wanted to change it to like this [url]http://example.com/frozen/frozen2010movie/1c4063b5a[/url] i have spent my valuable time …

Member Avatar for laddu2098
0
180
Member Avatar for blackrobe

Hey there, I'm currently using NetBeans 6.8 running Cygwin GNU Bash version 3.2.49(23)-release. I'm having a problem running my program that uses pthreads, mutexes, and semaphores. After it creates 1 to 3-4 threads, it returns a Segmentation fault. I ran the program on a computer running Linux (using NetBeans as …

0
118
Member Avatar for jems5

I would like some help to index through an empty array and fill it with 10 entries one at a time. The objective of the task is to create a GUI with two buttons, one (Store) to save the value into array position and second (Quit) to run statistics calculations …

Member Avatar for jems5
0
157
Member Avatar for santoshkosgi

i wanna create a small game using java....suggest me the best one and guidelies to make it........

Member Avatar for coil
-1
214
Member Avatar for CharbelKahi1

Hi How to know if there is any version of Java installed on the user PC and what revision, using JavaScript thank you Charbel

Member Avatar for scriptWolf
1
295
Member Avatar for Yutxz

Hey guys, I'm trying to solve a problem I received in school. It states: [I] Write a method named checkFermat that takes four integers as parameters—a, b, c and n—and that checks to see if Fermat’s theorem (a^n + b^n = c^n) holds. If n is greater than 2 and …

Member Avatar for NormR1
0
357
Member Avatar for SoftShock

Hi, I'm having a difficult time printing the product of the odd integers from 1 - 15. When I run it the program prints "1 2 2 2 2 2 etc." I don't see what I'm missing or why it won't print what I want. Did I add something I …

Member Avatar for SoftShock
0
125
Member Avatar for toferdagofer

This is probably an easy one that i know but its not coming to me. Im supposed to be hardcoding the 6 instances of a movie class into the array that i have set up. I am unsure where i would do that in my actuall code. [CODE] public class …

Member Avatar for Ezzaral
0
3K
Member Avatar for riahc3

Hey Ive been hearing about Netbeans but Id like alternatives. Any out there? If the program is not written in Java (ironic I know) I would perfer it. Thanks

Member Avatar for peter_budo
0
136
Member Avatar for raym.mart

can someone help me find something that i can depend on making sourcecodes using while, do while, for while...thx

Member Avatar for vaibhav1983
0
78
Member Avatar for solitaryy

So I have designed my program but am stuck on one function. [I]The following is an excerpt from my class:[/I] [CODE] public class SqrXY { public void SqrXY (double x, double y) { xaxis = x; yaxis = y; } public double addition () { //this is what I am …

Member Avatar for solitaryy
0
124
Member Avatar for anthwon

write a program in diving competitions, each jump is assessed by seven judges who give points on a scale from 0 to 10. The point for each jump are calculated as follows: Ignore the highest and lowest scores given by the judges. Then calculate the average of the remaining five …

Member Avatar for anthwon
0
281
Member Avatar for d2thalo

Hello, I am a java/database rookie. I am attempting to find some information on how to link an access database to a java application that my company runs. I know this is possible, but does anyone know any tips, or even where to start? Thank you in advance.

Member Avatar for Ezzaral
0
143
Member Avatar for tyson.crouch

G'day, I just want to ask how could i run a set up for a MySQL DB through Java. For example, when installing the application, I need to check if MySQL is installed, and if not, install it. OR, how would I go about checking for a registry for mysql …

Member Avatar for Ezzaral
0
118
Member Avatar for alexdlaird

I'm baffled by a recent discovery with one of my programs. I'm still in beta testing, so this was a good time to catch the issue. But it seems that, when installed on a 64-bit system, the data files are simply [I]not written[/I]. If you are running a 64-bit system, …

Member Avatar for Ezzaral
0
256
Member Avatar for doctorjo5

I'm having trouble figuring out a few different methods that I'm putting into a constructor. Any chance for advice? I'm having trouble with the last 3 near the bottom. I want to compare two name variable to each other to see if they are the same regardless of case, then …

Member Avatar for NormR1
0
204
Member Avatar for madawa123

hey guys, How to convert the lat/long (in decimal) to x,y pixel. my map has a height and width of 800,500 thnx regards, Nishan

Member Avatar for NormR1
0
487
Member Avatar for comSysStudent

Hi all, I've been trying to do this for a few hours now, I've seen several suggestions that castin the toArray() method to a (String[]) should work but this results in runtime errors for me. Code is below, any help would be appreciated. Error is with the getStudents() method, there …

Member Avatar for NormR1
0
326
Member Avatar for manjukdvg

Im developing one application here i need to pass the data from servlet to JSP .How can i pass it ? i tried by request.setAttribute() but it printing as null in JSP page . how can i solve this problem?

Member Avatar for punit.it
0
142
Member Avatar for jet101

Hi everyone... im new to this forum and also in web application using jsp-jstl. im having problem passing data from a multilple check box lists. here's my code: [CODE]<form method="post"><sql:query var="charge" dataSource="${datasource}"> SELECT chargeID, commodity FROM other_charges where charges_typeID = 1 </sql:query> <span class="cell_content">Toiletries:</span><br /> <c:forEach var="row" items="${charge.rows}"> <input type="checkbox" …

Member Avatar for Watashi
0
1K
Member Avatar for kumpul101

we have a case study to accept user input or should i say... INPUTS from user input :: must not exceed 5 digits. when the user inputs 0 (zero) .. it will reverse his inputs from before. how can i reverse them?? can this could do the job? [CODE]public static …

Member Avatar for JamesCherrill
0
278
Member Avatar for shandow

I have a project to create a game. This is my code since i am the way improvement. But now i face a problems is, when i run the code and play it, there have a bug and i don't know how to fix it, pls help me. When i …

Member Avatar for NormR1
0
525
Member Avatar for pr1sm

[code] private void button1_Click(object sender, RoutedEventArgs e) { ShellWindows shellwindows = new ShellWindows(); string filename; foreach (InternetExplorer ie in shellwindows) { // Get the document mshtml.IHTMLDocument document = ((mshtml.IHTMLDocument)ie.Document); // Get the script object. object script = document.Script; filename = Path.GetFileNameWithoutExtension(ie.FullName).ToLower(); if (filename.Equals("iexplore") && ie.Document.parentWindow.name = "Test") { // Make …

Member Avatar for pr1sm
0
1K
Member Avatar for sarkar.manab

Can some one help me in find out which other threads are created as we start our main program, like "main" thread will be followed by "Finalizer" and then followed by "Reference Hanndler" etc. It may be System threads. But my questions is how i came to know and starting …

Member Avatar for sarkar.manab
0
102
Member Avatar for flyingcurry

For homework, we have to find the time complexity class of certain algorithms and explain why it has that certain complexity class. So, I have a couple of questions: - Why is the first running time always so much longer than the ones after? (setting up the application or something??) …

Member Avatar for tong1
0
214
Member Avatar for NewbieProgram

Our professor decided to give us a really hard assignment in our 2nd week in the course. I really have no clue where to start. Requirements Writing reusable code to check a user name and password can be a challenging task. Three major things can change between one password checker …

Member Avatar for NormR1
0
265
Member Avatar for samuel17

Hi all, Me again. I am having issues with a looping program. My current issue right now is that it wont compile, it keeps saying i need another perentheses at line 20. This program is suppose to calculate the investment and show for every year. The year and amount of …

Member Avatar for tong1
0
240
Member Avatar for kratoras

Hello everyone, i have a problem using the replaceAll method and i hope that somebody can help. I want to remove substrings (sub) from a string (message). The message string looks like that: prop(ag1,0,1,4,5)/prop(ag2,2,5,3,3)/prop(ag1,0,1,4,5).... I want to take each prop(...) and put it in a list, but not the duplicate …

Member Avatar for Rajesh1202
0
241
Member Avatar for eman 22

I'm now studing Object Oriented programming course,and I want to do a gui and implement all rules of object oriented programming in it . so what's the best recommend language to do gui other wise library swing in java ??

Member Avatar for JamesCherrill
0
55
Member Avatar for Xufyan

I had an assignment to create a calculator in two ways, 1) Method returning values. 2) Method without returning values. I've done this with methods returning values but how could i add, subtract, divide , multiply without returning a value from methods ? [CODE]import java.io.*; class first{ int a=5,b=2,c; public …

Member Avatar for java_programmer
0
150
Member Avatar for java_programmer

I was trying to develop an application with Derby. I have java 6 installed in my machine. But I couldn't find any derby.jar or derbytools.jar under my java installation directory. Should I have to install it seperately? As per as I know, it installed automatically with JDK 1.6.

Member Avatar for JamesCherrill
0
54
Member Avatar for gyannitin

Hi All, When I am fetching a photo from the database, it is getting save into my tomcat server root directory. Now to use this photo i have to give path as C:\Program Files ...... I dont want to hard code this path in any of my web page. Is …

Member Avatar for gyannitin
0
87
Member Avatar for brave2010

got this simple web jsp system which was developed using netbeans IDE when i run this system its run able and successfully open the browser with the home page of the system..acording to the user manual of it says i must install oracle10g as database so how can i get …

Member Avatar for Protuberance
0
69
Member Avatar for cretaros

Hey guys i need a code that will load a picture from an external library and to a java frame, then it haveto be savwd to mySQL database. Is it possible to save it to a Db or it will be saved in binary form? if so hows the retrival. …

Member Avatar for NormR1
0
56
Member Avatar for CarterJJ

I'm looking forward to some tips on how to improve this code I wrote. Don't rewrite it yourself please, as I'm really not looking for someone else to do my homework. What advice would you give me? [CODE] import java.util.Random; public class CompareTo { public static void main(String[] args) { …

Member Avatar for NormR1
0
125
Member Avatar for joss23

Hi there,I am stuck here.The question ask to Write an application for a university admissions office. Prompt the user for a student’s High School Grade Point and an admission test score (value from 0 to 100). Print the message “Accept” if the student has any of the following: A grade …

Member Avatar for joss23
0
119
Member Avatar for Olliepop

Hey guys I'm about to launch this server on my VPS and want to make sure it won't do any damage or hit my CPU cap. I've written this code for my online game which visits a page every 888ms by starting a new thread which opens a connection with …

Member Avatar for Olliepop
0
203
Member Avatar for AirGear

Hello everyone, now i don't want to ask about error or bug, because what i need to do is searching a source code. The source code should be related to computer graphic, for example to sketch a graphic. Do you have any suggestion where i can find such source code …

Member Avatar for AirGear
0
93
Member Avatar for terzenta

I'm trying to work on a basic checking account program. It will eventually allow the user to make a deposit or withdrawal to an account. I honestly have no idea what I'm doing wrong here, but I'm hoping it's just something incredibly stupid. [code] //Deposit and Withdraw Funds package deposit_withdraw; …

Member Avatar for terzenta
0
150
Member Avatar for python_user

Can anyone please help me to display a click-able web-link on a window in java? I am new to java can anyone give an example? thankyou

Member Avatar for JamesCherrill
0
80
Member Avatar for sugumarclick

Hi folks, This is my first thread in Spring Framework and I am new to it . While creating a web app in Spring framework I cannot deploy it as it contains few errors. I couldnot resolve. So i seek help from you . . Bean creation exception is the …

Member Avatar for sugumarclick
0
491
Member Avatar for 47pirates

I've recently done a school management system with MS access Database . How can i embedd my database source in that project .Is there any solution? Help Please

Member Avatar for $athish
0
39
Member Avatar for Ambislm

hi buddies, I am much impressed by jQuery. I have enjoyed using it with javascript. But my doubt is whether we can integrate jQuery with java web applications? If so can anyone provide some examples? Thank You. :)

Member Avatar for peter_budo
0
59

The End.