32,204 Topics

Member Avatar for
Member Avatar for bkafroboy69

need some help. just wanted to know if my code is right can some one read over these instuctions and tell me if my code is right like the directions public boolean add(double value) If the size of the array is less than its capacity, then the value is added …

Member Avatar for stevelg
0
167
Member Avatar for solomon_13000

The code below will throw a RuntimeException which will be caught by the first catch block that handles the RuntimeException. Then why is it that the second catch block is attempting to handle the RuntimeException. Is it because a RuntimeException and an ArithmeticException are both unchecked exception?. [CODE] public class …

Member Avatar for masijade
0
115
Member Avatar for shredded

how do i write a java code preferably using the 'while-do', 'if-else', 'for' statements to get these outcomes? n is the input and the system prints triangles of height n? n=2 . * *** n=5 ........* ......*** ....***** ..******* ********* ignore the dots, they are to align them properly thanks …

Member Avatar for javaAddict
0
775
Member Avatar for xellos

whats the best way to make gui programs write all code your self or use the gui creator from netbeans? dont you get crappy code from the creator ?

Member Avatar for jwenting
0
133
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
257
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
173
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
152
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
220
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
124
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
203
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
109
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
112
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
99
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
67
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
326
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
70
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
588
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
195
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
215
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
60
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
188
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
55
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
41
Member Avatar for BobLewiston

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

0
77
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
166
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
195
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
742

The End.