32,204 Topics
| |
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 … | |
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 … | |
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 … | |
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 ? | |
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 … | |
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 … | |
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 … | |
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] | |
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 … | |
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) { … | |
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 … | |
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 … | |
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 … | |
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 … | |
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(); … | |
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 … | |
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 … | |
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.*; … | |
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 … | |
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 … | |
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 … | |
[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] | |
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 … | |
how we set a voice which is giving instruction like "Enter two number" "your result is this" | |
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( ) | |
Does enabling Java in my browser put me at risk of getting a malware infection? How about Javascript? | |
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 … | |
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 … | |
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; … | |
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 … |
The End.