35,618 Topics

Member Avatar for
Member Avatar for AllenB

Hello, I need to print the contents of a Windows Registry folder (Display Names). I have posted what I have started with and would appreciate some help. It returns a null value at this point, even though there are items in this folder. Thank you. [CODE] import java.lang.reflect.Method; import java.util.prefs.Preferences; …

Member Avatar for randyrude41
0
287
Member Avatar for surabhi.awh

hai iam new to jsp.i want to uplad an image to my website .my code is given below. Pls anyone help me ........... thanks in advance [code=java]import com.mysql.jdbc.Connection; import com.mysql.jdbc.Statement; import java.io.*; import java.sql.DriverManager; import java.util.Iterator; import java.util.List; import java.util.Random; import java.util.regex.Matcher; import java.util.regex.Pattern; import javax.servlet.*; import javax.servlet.http.*; import org.apache.commons.fileupload.*; …

Member Avatar for jaka.ramdani
0
162
Member Avatar for Member 784740

Hey, I want to send parameters via submitted form, and then to reload my jsp page: Should I use onclick command or on submit action to transfer parameters using GET method? My code: [CODE] <body> <form action="ShowPatientList.do" id="patientListForm" name="patientListForm" method = "GET"> <p>ImiÄ™ <input id ="imie" name = "Imie" value …

Member Avatar for jaka.ramdani
0
517
Member Avatar for exchequer598

Hi everyone! I am making a JSP page with Eclipse and Apache Tomcat 6. I want to create a drop-down list that will be populated with the list of all folders in the directory of that JSP page. Can someone show me how to do that? Thanks in advance!

Member Avatar for EloiseJoseph
0
805
Member Avatar for jemimaloh

Hi there! this an excerpt from an extracted pdb file my team has done in the format of a text file. ATOM 1 N ASN A 2 [B]18.668 27.299 52.379[/B] 1.00 41.19 N ATOM 2 CA ASN A 2 [B]19.400 26.674 53.492[/B] 1.00 40.18 C ATOM 3 C ASN A …

Member Avatar for jemimaloh
0
2K
Member Avatar for wavyaquaeyes

[B]Hi wonderful programmers,[/B] [B]I once again need help. First i need to create a class where if the input is a vowel , it returns true and if not it returns false.[/B] [B]i am just learning java, but also just learning classes, methods etc. I know I have to call …

Member Avatar for NormR1
0
187
Member Avatar for dupowdis

I have this great little program that I have made in the JCreator IDE. It has four class files. All of the classes are in a package called org.jfree.panning. They are listed as follows: XYPLOT.class* PanningChartPanel.class PannableXYPLOT.class Pannable.class * = Main Class There are also four .java files corresponding to …

Member Avatar for dupowdis
0
654
Member Avatar for sadhawan

Hi ,I have following javva script [code] test.AddQuestion( new Question ("com.scorm.golfsamples.interactions.handicap_1", "Which formula is used to calculate the 'course handicap'?", QUESTION_TYPE_CHOICE, new Array("Course Handicap = Handicap index + number of holes * number of lost balls in last round", "Course Handicap = Number of years experience / annual equipment spending", …

0
53
Member Avatar for thr

Hello i have questions I want to use java in ACM programmnig challenges please tell me what APIs are useful for this competition? I want to use uva-toolkit(uvatoolkit.com) problems to challenge myself how can i use judge these problems in my local computer? how can i use pc2 to judge …

0
46
Member Avatar for cjmartin

New to Java. I am trying to display the contents of my ArrayList. In the ArrayList are objects based off the Class PalletLocations. If I loop through the ArrayList I just get the object name/location (not sure what it is). For example "wms.PalletLocations@30fc1f". [CODE]ArrayList<PalletLocations> palletLocList = new ArrayList<PalletLocations>(); PalletLocations palLoc …

Member Avatar for NormR1
0
619
Member Avatar for dylgod

I am trying to write a code that reads an integer and then diplays a diamond with the corresponding number of lines. The program I have written displays a solid diamond, but I am only trying to display the outline. Here is my code: [CODE]import javax.swing.JOptionPane; /** *Odd and even, …

Member Avatar for NormR1
0
93
Member Avatar for dreamweaver75

I have this program I have to write that calculates the volume of a pool and then displays the results along with how much water is needed to fill the pool and the cost to fill the pool if the cost is .77 cents per cubic foot plus a one …

Member Avatar for jon.kiparsky
0
186
Member Avatar for TechLover95

Hi everyone, first time here! Well I was interested in programming and thought that I might start programming first with Java. I am a complete newbie at Programming and so I thought that starting with Java will be good. What do you guys think about Java? Also I was wondering …

Member Avatar for peter_budo
0
129
Member Avatar for dylgod

My assignment is to Write an application that reads a non-negative integer and prints the factorial of the integer using the for loop. I am hopelessly lost and don't even know where to begin with this. Does anyone have any advise to get me started? Thank you

Member Avatar for tong1
0
141
Member Avatar for yap_1991

[CODE]import java.io.*; public class ftp { public ftp() { URL url = new URL("ftp://username:password@ftp.whatever.com/file.zip;type=i"); URLConnection con = url.openConnection(); BufferedInputStream in = new BufferedInputStream(con.getInputStream()); FileOutputStream out = new FileOutputStream("C:\\file.zip"); int i = 0; byte[] bytesIn = new byte[1024]; while ((i = in.read(bytesIn)) >= 0) { out.write(bytesIn, 0, i); } out.close(); in.close(); …

Member Avatar for yap_1991
0
477
Member Avatar for drewdizzle

Hello, I am doing a homework assignment and I am getting an "illegal character" error and I don't understand. The assignment is to use an array to calculate three mortgage payments based on three differnt rates and terms in years. Thanks in advance Y'all. [CODE] /* calculator program to fully …

Member Avatar for drewdizzle
0
214
Member Avatar for vhea

hello... i am a graduating student now and me and my partner is currently developing our thesis entitled "high tech coin saver". This device is just like a digital coin saver. It automatically counts every coin whenever the user put one, it is limited on counting coins, and it can …

Member Avatar for jon.kiparsky
0
144
Member Avatar for thiliniss
Member Avatar for thiliniss

Im a it student,I like to learn about java ee concepts and also want to get information it.

0
19
Member Avatar for yap_1991

Hi all, Im currently working on a FTP program that downloads all files in a directory. Currently, I am able to list all the files in that directory, but I am stuck as on how to download all of them automatically. Would need some help in this. Thank you. [CODE]import …

Member Avatar for NormR1
0
111
Member Avatar for prem2

Hi daniweb team, Can any one know how to access Memcache value in java.? very urgent ! Thank you, With Regards, Prem

Member Avatar for JamesCherrill
0
38
Member Avatar for appunu

Hello guys, I am on the process of doing a java code which should read the excel file to get the values from the excel sheet to use them in my selenium test cases. I have problem in iterating through each row to check them in my test cases sequentially. …

0
75
Member Avatar for runee1000

Hi: For the longest time, I have been using the IDE "JCreator". I made previous games on it in the past for school, and when it would come to me implementing a background image in my game, I would make a background class, and have the image in my project's …

Member Avatar for runee1000
0
202
Member Avatar for nitrate

I'm doing an individual final year project using IBM Aglet, JRun and J2ME. The topic is "Mobile agent shopping system", better with some theories. I have no idea about what types of application should be done. Initially, I intended to build a system for the customers to search for the …

Member Avatar for nutan phalke
0
235
Member Avatar for pavan146

HI everybody can anyone pls let me know to be certified as java programmer by sun. so let me know complete procedure of applying for SCJP..

Member Avatar for masijade
-1
68
Member Avatar for gajendrancs_kcg

hi sir, i am gajendran doing engineering in kcg college of Technology in chennai.i planned to do project on j2ee for hospitals management.so i need some idea on hospitals management services.

Member Avatar for maceman
0
89
Member Avatar for cleve23

Is there a module in python that i can use to parse javascript??? I finding a module that parse out the error message like what the cssutils do when checking on css script. Thanks

0
55
Member Avatar for himit

Hi, I've an XML document and I am creating another XML using XSL. I need to check some specific conditions and for that I want to use Javascript in my XSL. I tried it, however, couldn't get the desired result. As I could not change the XSL variables frequiently so …

Member Avatar for fpmurphy
0
259
Member Avatar for dylgod

I am writing program that will eventually calculate the speed of sound though a medium using the switch function, but am unable to get it to read the numbers I input, here is the code if anyone can offer some pointers. [CODE]import javax.swing.JOptionPane; /** *This program calculates the time it …

Member Avatar for tong1
0
112
Member Avatar for student.09

[B]PROGRAM:[/B]Design a class named Rectangle to represent a rectangle. The class contains: Two double data fields named width and height that specify the width and height of the rectangle. The default values are 1 for both width and height. A string data field named color that specifies the color of …

Member Avatar for tong1
0
183

The End.