35,617 Topics

Member Avatar for
Member Avatar for vex

Ok I would like to use Deck in a third class. Deck myDeck = new Deck(); Then in paint I try g.drawString("" + myDeck[1].suit, 50,50); It says 'array required, but Deck found' If I try Deck[] myDeck = new Deck(); I get 'incompatable types' I hate asking for help BUT …

Member Avatar for server_crash
0
188
Member Avatar for JavaFish

Hi I have searched this site for help with this and used an example of a lottery numbers program. However, I need to modify it slightly but can't seem to get it right. I would like to be able to generate random numbers between 0 and 100 (maybe negative oness …

Member Avatar for JavaFish
0
348
Member Avatar for bsunkel

Heya all, Is there a way to get the date and time that is set in the Cmos and not the date and time which is set in Windows. My Windows date and time is usually wrong. Thanks!

Member Avatar for mmiikkee12
0
228
Member Avatar for pablo21

Hi everyone! My name is Paul I have an OO project that I need to complete by the 15th of August and I have attempted to start it but i'm now stuck. If anybody can help me in anyway possible I would greatly appreciate it. Please find the specification below. …

Member Avatar for proghelper
0
210
Member Avatar for jwenting

[B]Problem[/B] Due to a rather annoying and very old bug in JTable you will never get a horizontal scrollbar on a JTable even if the table is wider than the JScrollPane you placed it in. According to the bug report this is due to an error in the handling of …

Member Avatar for freesoft_2000
1
1K
Member Avatar for Amor

EMERGENCY I TRIED WRITING A PROGRAM THAT: THROUGH CLASS DAY SETS,PRINTS,RETURN WEEK DAY THE PREVIOUS AND NEXT DAY ,AND SHOWS THE CORRESPONDING DAY OF THE DAY IN A WEEK LIKE : [COLOR=DarkRed]DAY:5 IS SUNDAY DAY: 34 IS WEDNESDAY ......ETC...........[/COLOR] [COLOR=Navy]PLEASE HELP HELP I NEED TO SUBMIT THIS IN 4 DAYS. …

Member Avatar for freesoft_2000
0
170
Member Avatar for rony

Hiya, Does anyone know of linking Java with Fortran under Windows OS, preferably Windows XP? Can anyone give a short example including code? I have found pretty good examples of using Java-JNI-C/C++ works pretty well. I am using Dev-C++ compiler. I look forward to hearing from someone. Thx Rony

Member Avatar for Narue
0
221
Member Avatar for freesoft_2000

Hi everyone, Consider this URL. "http://forums.devx.com/newthread.php?do=newthread&f=104" Some URLs have something that are called escape characters("?", etc") Are these characters supposed to encoded using the URI class that has a method called toASCIIString() that returns the escaped characters as a US ASCII format or simply by direct connection or create a …

Member Avatar for jwenting
0
714
Member Avatar for ripdeath987

1. How can I send files as mail attachments in java? 2. How can I create a new directory everyday and save files in it? 3. How can I append into a file after saving the file with a save file sequence?

Member Avatar for jwenting
0
94
Member Avatar for jwenting

I try to use getClass().getPackage().getName() to get the package name of an object to insert into a log message. Sometimes it works, at other times it throws a NullPointerException. Does anyone have any insight into the conditions under which getPackage() returns null ('cause that's what's happening)? The classes in question …

0
83
Member Avatar for victoryn

Hi, I have developed the attached JAVA programs (*.java) and encountered compilation error (*.txt), it would be very much appreciated if you can help. Thanks, Victor

Member Avatar for freesoft_2000
0
347
Member Avatar for md16185

As far as programming Java and Javascript can be confusing... How do you do a java-based chat, any ideas?

Member Avatar for freesoft_2000
0
486
Member Avatar for rpratt

Hi, Has anyone had the following problem? When I run the following code (just using Notepad and my DOS prompt): public class MathFunctionsApp2 { public static void main(String[] args) { int b = -50; double x = 25.0; double y = 3.0; double z = 4.0; System.out.println("cbrt(x) = "+ Math.cbrt(x)); …

Member Avatar for server_crash
0
333
Member Avatar for zoltzer

I need a program that will need to do the following for me in order to keep track of grades or at least how to get started using an Array: Ask the user for the # of Math homework assignments Ask the user for the total points possible for Math …

Member Avatar for sam1
0
174
Member Avatar for Kennedy_f

I'm seeking for java2 certification. I downloaded ucertify product. Question are on right quality. Approx. 500 questions with study notes is quite enough for prepration. Challenging practice questions have been included to closely model the format, tone, topics, and difficulty of the real exam. Now they are giving 50% discount …

Member Avatar for jwenting
0
176
Member Avatar for mu42774

Hi, By the way, I used JAVA to run this simulator.However, my question is, I have to deliver this part of the assignment by 7th of August, but I am not sure if whatever I tried to explain on the [B]Explanation for the Summary Result File for TWO processes in …

Member Avatar for Sauce
0
119
Member Avatar for barrabomber

Hi, I'm having a problem creating a java program to generate odd numbers and then perform calculations on them. Some ideas and help are much appreciated. thx in advance

Member Avatar for server_crash
0
96
Member Avatar for ripdeath987

First of all thanks everyone for the replies...They helped a lot. Now I want to mail multiple files as attachments also on 1 button touch...And how do i create a Directory to store files that I save . So far i have written this code but maybe you can upgrade …

0
96
Member Avatar for zoltzer

I need any help I can get!! Below is my coding. When I run the program it just averages out all the numbers that I put in, which doesn't coincide with the homework assignment as stated right here: For this assignment, you will write a Java program that will determine …

0
94
Member Avatar for asatrujesus

I've figured out im using the wrong loop for the task at hand but im still wondering why it repeats this exactly 3 times: for(ch = (char) System.in.read(); ch != ('k' | 'K') ; ch = (char) System.in.read()) { System.out.println("sorry, you're incorrect!\n Guess again: "); } It prints this in …

Member Avatar for cheenu78
0
225
Member Avatar for George2

Hello everyone, I want to write an own CVS client in Java. And I am looking for the following materials, - CVS protocol specification - Education materials about CVS protocol - A simple open source CVS client in Java Could anyone help? thanks in advance, George

Member Avatar for George2
0
360
Member Avatar for Pete_R

Hello, My first post, a little nervous I am. I am starting with learning Java on the server side in servlets. I use Flash on the client side. What I would like to do is the following: [INDENT]client side: send xml file / receive xml file server: accept xml file …

Member Avatar for Pete_R
0
231
Member Avatar for asatrujesus

Im reading about logical operators (yes noob here) and Im sort of confused as to what some of them actually mean. Example: if b1 is true and b2 is false !(b1 & b2) is true b1 | b2 is true b1 & b2 is false b1 ^ b2 is true …

Member Avatar for freesoft_2000
0
413
Member Avatar for ripdeath987

First of all thanks everyone for the replies...They helped a lot. Now I want to mail multiple files as attachments also on 1 button touch...And how do i create a Directory to store files that I save . So far i have written this code but maybe you can upgrade …

Member Avatar for freesoft_2000
0
148
Member Avatar for gssharma16

plz send me the name of method to convert the string to individual char and Tell me wheather Character.parseChar() exit or not in JAVA. with thanks Ghanshayam Sharma (MCA Student)

Member Avatar for jwenting
0
123
Member Avatar for om1d_h

We are developing a web based accounting system. We have a server runnig Linux (switching to win is ok) and some clients all runnig win. In the program clients neeed to scan some document attachments and upload them to our servers. Some recommended to use Java applets. what do you …

Member Avatar for freesoft_2000
0
133
Member Avatar for hidleb

hi all, i have a javacard code for smart cards . my problem is how to add new functions for the credit method. The essential code is written but i couldnt edit my credit and debit method. could you help me with that please ? thanks

Member Avatar for freesoft_2000
0
155
Member Avatar for glamo

hi ti every one i am newbie , actually i want to develop a project using java actually the project is on "network mangment through SNMP" i woulkd like to know all baout how to start this project tell me about this byeeeeeeeeee :

Member Avatar for freesoft_2000
0
214
Member Avatar for higherGround574

I'm currenty using Eclipse for my compiler ... does anyone have any better suggestions?

Member Avatar for freesoft_2000
0
155
Member Avatar for cman

Im trying to compile a program but get this error javac:invalid flag:order.java-xlint and when i compile without -xlint i get the following Note: order.java uses or overided a deprecated API. Note:Recompile with -Xlint:deprecation for details

Member Avatar for server_crash
0
168

The End.