31,001 Topics

Member Avatar for
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
151
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
123
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
198
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
111
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
98
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
323
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
69
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
580
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 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
54
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
40
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
194
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
730
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
66
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
57
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
276
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
104
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
93
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
181
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
116

The End.