36,051 Topics

Member Avatar for
Member Avatar for pradeepkumarb

how to display the randomly selsected questions from a database one at a time in jsp like in online quiz.please help me

Member Avatar for jwenting
0
260
Member Avatar for Stefankarlsson

Hello everyone, im writing this post because im in need of some help or guidelines. My programs function is to be able to store cars, with this i mean being able to: add, delete and view the list of cars added. Everything is supposed to be stored in a txt …

Member Avatar for javaAddict
0
258
Member Avatar for schippi

Hello, Stuck on one line of code, tried everything but could not make any progress. Please help. Thanks in advance. The problem is on line 39 which is: slant_height = SphericalCone1.getSlantHeight( radius, cone_height) ; TheNetBeans IDE6.8 displays the error message: Can not find symbol: class SphericalCone But SpericalCone class compiles …

Member Avatar for BestJewSinceJC
0
175
Member Avatar for rastus77

I have a homework assignment that's due in a couple of days and I need a set of experienced Java eyes to confirm that a few of the answers to the questions below are correct. The hard part about these questions (for me anyways as a newbie Java person) is …

Member Avatar for BestJewSinceJC
0
156
Member Avatar for rastus77

I'm new to Java and can't seem to understand why this code doesn't work. Any input would be appreciated. Thx. [code]Public class MyClass int a; float b = 1.5; public void static main(String args) { MyClass mc = MyClass(); mc.a = 1.5; system.out.println(b); }[/code]

Member Avatar for peter_budo
0
223
Member Avatar for StephNicolaou

Hi developers, I'm not sure if this is possible, but I've tried to add database elements to a list box. There are no errors shown, but it simply does not work. Here is the code below: [CODE] if(criteria1 == 1){ getDBConnection(); try { stmt = conn.createStatement(); if(stmt.execute("SELECT Clients.Firstname FROM Clients …

Member Avatar for StephNicolaou
0
126
Member Avatar for habibalbi

I wrote this java program that performs functions of a vending mention. But now I need to write it using methods, how can I do this? Here is my code: (Any help would be greatly appreciated! [CODE]import java.util.Scanner; import java.util.Random; public class VendingMachine { public static void main(String[] args) { …

Member Avatar for kvass
0
204
Member Avatar for wee_shark

Hi all! I'm writting a little application and I'm triying to give it a feature where the user can move the Mouse over an component(JButton) and gets a little explanation what the Button does if pressed. I have an Rectangle for every component I use to set the bounds of …

Member Avatar for BestJewSinceJC
0
112
Member Avatar for skwatamkar

hello friends I have a large table which contains the large text data. the table cell shows the value as for example if value is "Hello Friends" it shown in cell as "Hello Fr". which cuts the value so want to display this complete value in rectangle like joptionpane (I …

Member Avatar for BestJewSinceJC
0
113
Member Avatar for laelzio.mosca

I`m trying to use sets and gets for a code, but it`s not compiling I`m not sure how to set and get a String, this is what I have so far this is class Car [CODE] String color; void setColor(String col) { color = col; } String getColor() { return …

Member Avatar for laelzio.mosca
0
101
Member Avatar for piers

This is the hardest thing I have tried yet. I am not adding ti as part of the main programme I am doing at the moment cus otherwise it would be too hard to debug. So I have created this as a separate file. I am trying to get a …

Member Avatar for peter_budo
0
3K
Member Avatar for skwatamkar

here is the code for displaying the content of the database if a run the file 'java listall' then it will work well but when i try to run the code from the main class with the help of JButton list as if(ae.getSource() == list) { System.out.println("list working"); new listall(); …

0
68
Member Avatar for tgraves

I have changed the Path Environment Variable for Windows Command Prompt to: C:\j2sdk1.4.2_04\bin so why, when I try to run javac while in the code folder directory, do I still get the error message "javac is not recognized as an internal..." I was forced to put the path info in …

Member Avatar for peter_budo
0
329
Member Avatar for The king

hi every one, i am working in a web content filtering program, i need a help in what is the efficient way to block the web sites, and how to capture the images from the response return to the request done by the web browser to do image analysis, plz …

0
71
Member Avatar for karamjeet2004

i want to send value to another jsp page from sessions i add the attribute session=true in both jsp pages but i am getting error during running mode can u find any errors in code [B]try123.jsp[/B] [CODE]<% String val=(String)session.getAttribute("itemValue").toString(); %> <TD>IMAGE NAME</TD> <TD><INPUT TYPE=text NAME="img" VALUE="<%=val%>"></TD> </TR> <tr>[/CODE] [B]try.jsp[/B] [CODE]String …

Member Avatar for javaAddict
0
145
Member Avatar for sandyben

i have a main java code called home.java which is an interface. when i press button BTNSTART , i want d progm WebCam.java to exxecute. but it's giving me an error saying : [B]ERROR[/B]: home.java:146: cannot find symbol symbol (constructor WebCam()) the code home.java : [CODE] import javax.swing.*; import java.awt.*; …

Member Avatar for sandyben
0
592
Member Avatar for kylethedarkn

I'm Taking a Class on Java at my Highschool, but my teacher goes very slow and I need a quicker pace. Could anybody so kind as to give me a list of simple classes and commands so that I could work with them. Also does anybody know a Good program …

Member Avatar for wee_shark
0
197
Member Avatar for chicago1985

-------------------------------------------------------------------------------- I have this test working where it takes data from a Java class and shows it in a JSP: [code] String targetItems = "test" List pageItems = New ArrayList; for(int i = 0;i < calculatedResults + 10;i++) { pageItems.add(targetItems + " " + i) } request.setAttribute(pageItems, "pageItems");[/code] I would …

0
90
Member Avatar for zac_mathews

Hi I am a J2ME developer I am new to Dani Web. I am using chartapi.finance.yahoo.com to calculate and display chart. My questions is how to convert TIMESTAMP value to a Java Date or Calendar Object ?..... For Eg: URL GIVEN BELOW [URL="http://chartapi.finance.yahoo.com/instrument/1.0/aapl/chartdata;type=quote;range=1d/csv/"]http://chartapi.finance.yahoo.com/instrument/1.0/aapl/chartdata;type=quote;range=1d/csv/[/URL] Its output will be uri:/instrument/1.0/aapl/chartdata;type=quote;range=1d/csv/ ticker:aapl unit:MIN …

Member Avatar for zac_mathews
0
1K
Member Avatar for miles.85

I will start a new project. But I have some simple questions about it : 1) Is the C faster than Java on processes which has no graphic user interfaces (like softwares which are working just from command line) ? 2)Because if the C is faster than Java, I want …

Member Avatar for miles.85
0
220
Member Avatar for abhi_marichi

[B]Hi, I want learn the process of coding from scratch for the development of face,hand,human body tracking.... Where can I get the learning resources???? Thanks for ur replies..[/B]

0
62
Member Avatar for jemz

hello please help me on this how to make the log in password in gui that can accept at least 6 characters and not more than 10 characters..and if i will re enter the password and it will prompt to the user that password is already exist..hoping for your positive …

Member Avatar for jemz
0
190
Member Avatar for ASITKUMAR

how we set a voice which is giving instruction like "Enter two number" "your result is this"

Member Avatar for peter_budo
-1
57
Member Avatar for naveencgr541n

i am new to this technology. now i am preparing what is the value of (byte)0x80 and another thing is difference between and using of b [] and b( )

0
43
Member Avatar for BobLewiston

Does enabling Java in my browser put me at risk of getting a malware infection? How about Javascript?

0
93
Member Avatar for habibalbi

I need to write a program that accepts coins(nickles, dimes, quarter) and single dollar bills, dispenses the item and returns change if the deposited money exceeds the item's value. There are 5 items with the prices of: 65 cents, 95 cents, 50 cents, 110 cents and 75 cents. There is …

Member Avatar for VernonDozier
0
169
Member Avatar for plodder

Hey. I have an arraylist; [CODE]public static ArrayList<String> name = new ArrayList<String>();[/CODE] and its made of of names; [CODE]public static String name;[/CODE] They both had to be static as it didn't work if they weren't. In the public void static main method, I populate this arraylist. I then want to …

Member Avatar for BestJewSinceJC
0
2K
Member Avatar for pinansonoyon

Hello everybody! I use the actiWATE library for one project. This is a code file Main.java [CODE] import bro.bro; import java.io.IOException; import java.io.UnsupportedEncodingException; public class Main { public static void main(String[] args) throws UnsupportedEncodingException, IOException { bro doBro= new bro(); } } [/CODE] file bro.java [CODE] import com.actimind.actiwate.http.HttpResponse; import com.actimind.actiwate.testing.ActiwateTestCase; …

Member Avatar for BestJewSinceJC
0
198
Member Avatar for NinjaLink

First, I want to say that I am Java beginner and I do not have a lot of experience. This is my 2nd program. My objective is to write a program using stacks to see if a line inside of a file such as test.txt has matching scope symbols such …

Member Avatar for BestJewSinceJC
0
749
Member Avatar for sonai4u

Hi, I need one of my assignments to be done in C or C+. Need someone who can do the assignment for it. Need it urgently..need the assignment done by sunday. Will pay money for doing the assignment. Please email me immediately <<Email Snipped>> thanks Raj

Member Avatar for Ancient Dragon
-7
498
Member Avatar for Fazle

Hi, I am struggling to read ( Hex )bytes from TCP port and write to a file. If someone can help me, I will aprreciate. Thanks,

0
68
Member Avatar for kspider811

I can not figure out how to add to my array. The invntory class and dvdrate subclass is not to change. So within my InventoryProgram2 I am told to copy a temp array with the addition of an element to the actual array using the add button. This is so …

0
60
Member Avatar for ziaul1234

Hi I am using netbeans and mysql. I am trying to run the an inventory system. I have linked the program with mysql. The program is running but when in log in page I input username and password which is preinstalled in mysql and then press submit, its not going …

Member Avatar for javaAddict
0
3K
Member Avatar for petee1302

Hi everyone, Apparently I'm very bad at this whole programming thing, but, nevertheless, I am currently in a CPS course and in dire need of assistance! I have 3 objects set up: TwoNumbers, TwoNumbersTester, and Test. When I build the code, it's all fine. When I run the code, though, …

Member Avatar for petee1302
0
300
Member Avatar for shyni

The program which is executing in windows has occurred error in linux. The program is on the jframe which is designed by using swing controllers is executing with error free in windows but when i use to execute the same program in linux an error as [B]GroupLayout [/B]error is occurring. …

Member Avatar for Kruptein
0
107
Member Avatar for solomon_13000

What is the difference between the following two interface. How does the term "abstract" used along with an interface makes it different?. [CODE] abstract interface Bendable { } interface Bendable { } [/CODE]

Member Avatar for BestJewSinceJC
0
95
Member Avatar for karamjeet2004

i hav cod to redirect to two different pages but one cod is working and one not one form enctype is urlencoded which is default is working and other with enctype=multipart is not working plz help i googled about this but nothng works so i came here 4 d sol …

Member Avatar for jwenting
0
110
Member Avatar for ceyesuma

I have a class KeyCards.java that just sets up a panel (gui) with labels,combobox and text fields when the combobox is selected a class generates strings to send to a class public Class Progressions extends KeyCards and puts the strings in setters. once all the strings are there it calls …

Member Avatar for BestJewSinceJC
0
183
Member Avatar for JanieRae

Hi, I'm a freshman and I just started programing. I have an assignment due soon, and it's almost finished. My only problem is there is one build error that tells me ".class expected". This is on the same line as a for statement... and that really confuses me. Here's my …

Member Avatar for BestJewSinceJC
0
119
Member Avatar for heroes8453

Does anyone know where I can find information about writing a java application for a file dump utility, a java program that will read a file and display the contents of the file in a byte by byte format? I am lost on this one.

Member Avatar for jwenting
0
118
Member Avatar for kvass

Hey everyone~! I am having a major issue understanding class casting. I thought I understood it, but I found 2 problems in my Barron's book that seem to contradict in their explanations. Can someone please explain the distinction between these two problems??? [B][U]Problem 1:[/U][/B] [INDENT] Bird = Super class Owl …

Member Avatar for kvass
0
234
Member Avatar for ef32

Hello , am new here and i need some help in finding prime numbers.....I actually wrote this code below and it compiles but it repeats sequence with some numbers or most, plus if you run it you will see that the prime numbers are printed as prime numbers only but …

Member Avatar for mrnutty
0
128
Member Avatar for musthafa.aj
Member Avatar for musthafa.aj
0
3K
Member Avatar for BobLewiston

To avoid malware infections, should I permanently disable Java and ActiveX in Internet Explorer? How about Javascript? If I should also disable Javascript, should I just disable Active scripting, or all options? But I don't also need to disable any of these in Windows itself, right?

0
90
Member Avatar for beGinneR24

Hello, i am just starting with Java and one of the programs is, to make a long story short, evaluate a computers power (pretend). you put in how many applications you want to run, what operating system and what power your computer is and it tells you whether you can …

Member Avatar for beGinneR24
0
100
Member Avatar for rsaska

Hello, I am studying for SCJP 6 Exam, and came across this question which shows code as asks for the output [CODE] 3. public class Ebb { 4. static int x = 7; 5. public static void main(String[] args) { 6. String s = ""; 7. for(int y = 0; …

Member Avatar for rsaska
0
225
Member Avatar for solomon_13000

Why is it that when I invoke the Derived constructor from the main method, I get a compilation error pointing to the Derived constructor of the Derived class. I never called the Base constructor of the Base class. Therefore why is the error happening?. [CODE] class Base { private Base() …

Member Avatar for PatrickSharp
0
129
Member Avatar for Siren88

Hi, My assignment is to write static methods to give the following output: - Lists of all the sequences, all the perms, all the sets, and all the multisets with n=5 and k=3. -The [I]N Queens Problem[/I] considers how many ways n queens can be placed on an n by …

0
61
Member Avatar for jorgelex008

Hi all, I've got a main form, and a secondary form (this being a list from which I pick a number). I can store values as "global" variables - so as to bring the value across different classes. Also I've managed to get the main JFrame to display the value …

Member Avatar for jorgelex008
0
169
Member Avatar for java_programmer

Hi, I have another question. What is the advantage of arraylist over vector. Why arraylist is widely used instead of vector in java programming? Thanks in advance.....

Member Avatar for BestJewSinceJC
0
121

The End.