35,618 Topics

Member Avatar for
Member Avatar for kdgeiger

I am trying to create an array of 20 values the have 4 methods that 1st will create a total of all values listed, 2nd search the array and return all values less than 5.00, 3rd return the average of the values using the output method from the first method …

Member Avatar for kdgeiger
0
203
Member Avatar for nocookies92

I'm relatively new to Java and I was trying to make one my programs more accessible to my non-computer savvy friends with java web start. I took my .class file and archived it with the command: [TEX]jar -cf TabbedLatinHelp.jar TabbedLatingHelp.class[/TEX] I then created a .jnlp file and uploaded the .jar …

Member Avatar for nocookies92
0
2K
Member Avatar for intes77

here's my code, i wanted to add another button that would have its own ActionListener. NOTE: its in object oriented style. i wanted to add these codes in my main class for my additional buttons, but my problem is i dont know how to make their ActionListeners. [CODE]myButton2=new Button("GET DIAMETER"); …

Member Avatar for JamesCherrill
0
220
Member Avatar for Jb2481

Hello, I'm trying to figure out this method were i add courses to a student. and then call it in the main method . [code] public ArrayList getCourseList(){ return courseList; } public boolean addCourse(EnrolledCourse courseName){ for (int i = 0; i <= courseList.size(); ++i ) if(courseList.contains(null)){ courseName.getCoursename(); this.courseList.add(courseName); return true; …

Member Avatar for jon.kiparsky
0
752
Member Avatar for gaurav17may

I am trying to make a rectangle which can be resize when i stretch its borders and this rectangle will drag n drop also.this rectangle will grab a jpeg picture and paste in new panel area.nay help is appreciated thank you....

Member Avatar for NormR1
0
33
Member Avatar for arunmani4u

Hi frinends, I am Arunkumar I have to write a code to fetch every information from a computer including Hardware ,Software and every thing from system....i wrote code to get hardware information but i need help to fetch software information from system..please any one can help me

Member Avatar for NormR1
0
194
Member Avatar for prem2

Hi, Can any one say what is hte difference between contains and containsValue in hashtable. Thank you, With Regards, Prem

Member Avatar for prem2
0
660
Member Avatar for KilluaX

Hi, all Can anybody tell me how to get the current date in a java program? And, I want to insert the date into a database with a date/time format, is there any difference from insert a string? thanks for reply

Member Avatar for sangeetha.cse
0
366
Member Avatar for Xufyan

Check my program....i want a decrement of 10 for the value of K, how can i do this ? [CODE] public class arrey { public static void main (String [] args) { int i, j, k = 100; int [][] TwoDArray; TwoDArray = new int [4][]; TwoDArray [0] = new …

Member Avatar for Xufyan
0
116
Member Avatar for therstonsplace

HEEELLLLPPPP!.... i am stumped.... i am a student and have access to the server at my college.... on this server they have installed javac and i am running my java on vi text editor in a virtual server. okay i can import all kinds of things... but i cant import …

Member Avatar for therstonsplace
0
132
Member Avatar for johndoe444

Hi, I was trying to j2ee web service example helloservice. When I was building the simpleclient I got the error: [CODE]wsimport-client-generate-nosecure: wsimport-client-generate-nojvmargs: [echo] C:\glassfishv3\glassfish\docs\javaee-tutorial\examples\bp-project\ma in.xml/../../../../../../glassfish/lib/endorsed [echo] helloservice.endpoint [echo] build/generated/wsimport/client [echo] build/jar [echo] http://localhost:8080/helloservice/HelloService?WSDL [wsimport] Consider using <depends>/<produces> so that wsimport won't do unnece ssary compilation [wsimport] JDK's tools.jar was not …

Member Avatar for peter_budo
0
215
Member Avatar for ceyesuma
Member Avatar for mansurimn@gmail
0
69
Member Avatar for Cabrakan

Hi, look I've been with a very frustating problem for like 2 or 3 days now, I have advanced but think I've gotten to point where cannot go any further I need some help and the sdn (business objects) forum regarding this topic simply suck, there's only one guy answering …

Member Avatar for musthafa.aj
0
435
Member Avatar for priyanka.js28

if i want to dereference an object(using delete operator) of DERIVED class which is being referenced using a BASE class reference, which destructor would b called automatically?? BASE class destructor or DERIVED class destructor??

Member Avatar for JamesCherrill
0
148
Member Avatar for walter307

how to put a command using only 2 letters the Y and N? and then prints out a text saying please input y and n only ex: [CODE]System.out.print("DO YOU WANT TO TRY AGAIN [Y/N]? ");[/CODE]

Member Avatar for new_programmer
0
140
Member Avatar for lloydsbackyard

i have this program...the color program..but i have a problem on converting a string to character. anybody can help me..thanks.. below is the java code import javax.swing.JOptionPane; public class ab{ public static void main(String[]args){ String a; a=JOptionPane.showInputDialog("Enter color: "); // I need to convert the variable a from string to …

Member Avatar for jon.kiparsky
0
2K
Member Avatar for comSysStudent

Hi all, I'm working through the java tutorials on sun.com and trying to create a card class and a deck class which populates with card objects. Having trouble getting things running and I'm not sure where the problem is, pasted below are the card class and deck class, I'd appreciate …

Member Avatar for comSysStudent
0
527
Member Avatar for sadhawan

Hi Guys , how can i parse java script.I have a script as follows [code] test.AddQuestion( new Question ("com.scorm.golfsamples.interactions.etiquette_1", "When another player is attempting a shot, it is best to stand:", QUESTION_TYPE_CHOICE, new Array("On top of his ball", "Directly in his line of fire", "Out of the player's line of …

Member Avatar for jon.kiparsky
0
179
Member Avatar for sujathaarsid
Member Avatar for EricTetz

I've been coding an applet using Java 1.4 under the (possibly/probably misguided) assumption that newer JRE's are backwards compatible, so my applet could run on a wider array of target systems without requiring users to update their JRE. Is this a valid assumption? I'd like to use the new language …

Member Avatar for jon.kiparsky
0
169
Member Avatar for johnnyturbo3

Hi, I just want to get the opinions of JSP developers on what they think the future of the platform holds. I'm currently a university student and I have gained a lot of experience in Java, and some in JSP. I'm looking now to concentrate on a single web language …

Member Avatar for GujuNilesh
0
768
Member Avatar for Baadal

Hi I am new to this forum and want some help with some Java code. I am creating a Three Tier Structure and below is the GUI class of the project. The problem is I can't make it work to insert into the Database file. Could someone please help me …

Member Avatar for Baadal
0
1K
Member Avatar for SeanC

I'm currently learning java, and im having a problem understanding what's going on when we use a constructor when inheriting from a class that already has a constructor. The best would be to just throw in my example. I have 2 classes, "Person" and "Employee". "Employee" is inheriting from "Person", …

Member Avatar for jon.kiparsky
0
138
Member Avatar for shella

Hi all, i'm newbie with jsp and i'm trying to connect with mysql through a select with a variable passed from an another page... The code i have is what follows: [code] <% // Prendo la variabile dal form String username=request.getParameter("username"); String sql="SELECT * FROM cmascella_users WHERE username = " …

Member Avatar for sawedd
0
160
Member Avatar for bops
Member Avatar for eman 22

I want easy algorithm with minimum order to get the sub-rectangle with the largest sum in an array for example array as a input 0 -2 -7 0 9 2 -6 2 -4 1 -4 1 -1 8 0 -2 sub-rectangle 9 2 -4 1 -1 8 maximum sum of …

Member Avatar for eman 22
-1
127
Member Avatar for beluga

Hello, I am little stuck with . It is not populating the errors for me, rather it is loading the page without . Attaching my code: [CODE]<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "struts-config_1_2.dtd"> <struts-config> <display-name>CSV File Upload</display-name> <description>CSV File Upload</description> <form-beans> <form-bean name="FileUploadForm" type="example.struts.FileUploadForm"> …

Member Avatar for java_programmer
0
138
Member Avatar for JAN811

Hi every one i would like some help on my project for software development that will mark my end of year and am really trying to figure out what i should work on. Any one please with cool ideas help me. It should be in java and Databases we have …

Member Avatar for tong1
0
74
Member Avatar for walter307

I just got my java project (beginner). . and its like this Output: What is my grade in Java? ([I]part where you input a grade[/I]) My grade in Math? ([I]input math grade[/I]) ([I]the next screen shows the grades i input, gets the average, then the shout out of my grade[/I]) …

Member Avatar for walter307
0
175
Member Avatar for nihan1

[code=java]package cookie; import javax.servlet.http.Cookie; public @interface getNextCookieValue { cookie = new Cookie("mycookie",""+getNextCookieValue());) }[/code] please help me I don't know how can I create annotation of the structure in java servlets. The code gives an error as: Multiple markers at this line - Syntax error on token "cookie", VariableDeclaratorId expected after …

Member Avatar for NormR1
0
82

The End.