User Profile
Collapse
-
I want to open them in netbeans to use -
Help openning
I have a folder full of (.class) files. I cannot get them to open in NetBeans...why? can you help -
-
it unfortunately is needed..we have touched them, what I meant we havent learned is how to use the scanner classLeave a comment:
-
My most recent working code
how would I implement sychronization and without
Code:import java.util.concurrent.*; public class Thread { private Integer sum = new Integer(0); public static void main(String[] args) { Thread test = new Thread(); System.out.println("What is sum ? " + test.sum); } public Thread() { ExecutorService
Leave a comment:
-
Im sorry, i dont follow..what did I do? i was doing this the way our instructor wants...i just need help to make it work....no disrespect meant...purely an accidentLeave a comment:
-
without synchronization ?
Code:import java.util.concurrent.*; public class Threads { private Integer sum = new Integer(0); public static void main(String[]args) { Threads test = new Threads(); System.out.println("What is Sum ? " + test.sum); } public Threads() { ExecutorService executor = Executors.newFixedThreadPool(1000);
Leave a comment:
-
interesting how that was part of the requirments...? I am currently at work. I will post code later in the day, probably after 3:30...ThanksLeave a comment:
-
any direction would be gr8
I need to write a program that launches 1000 threads. Each thread adds 1 to a variable sum that is initially 0. I need to pass sum by reference to each thread. In order to pass by reference, define an Integer wrapper object to hold the sum. Run the program with and without synchronization to see the effects.
Ex output:
At thread 1 sum = 0;
At thread 2 sum = 1,
Etc…
im lost on how to start..I... -
-
i personally am having a hard time grasping the exceptions thing and honestly the JAVA language as a whole. I am finding it very rough to focus on and am slowly falling behind in my class. do you know of any good tutorials or books that may help me graspe it faster or easier? i have another assignment due this week and I have no clue (unfortunately) on how to even startLeave a comment:
-
well I must say that you guys love to make someone who is trying to learn feel STUPID..just because you have a lot more experience or TIME to understand the concepts here...doesnt mean everyone does...
here is the code I have that throws an exception which in turn kills the app...
Code:import javax.swing.JOptionPane; public class Grades { public Grades() {
Leave a comment:
-
Exporting Access to Excel or PDF
What I am trying to do ...I have a program that keeps the names, numbers, blah blah of customers....th is is gui and saves to access. I need a button with code with the capability to export the access info to excel, PDF, Txt...any of the above. but I would like it to be exported in a printable readable manner...i can get it to go to notepad..but in a non-pretty way.
please help -
can you lead me through setting up an exception that give a GUI ok or cancel and then lets them proceed with entering? i have it throwing an exception now but it just kills the programLeave a comment:
-
This Runs and kills the app when you put in an invalid number
But What I want is for it to stop and tell the user and then they can continue...how would I do that?
can you explain the " SUPER(S)" at the end?
Code:import javax.swing.JOptionPane; public class Grades { public Grades() { float grades [] = new float[5]; float ave,
Leave a comment:
-
i agree...but to show me the working code and where it goes...would give me a working example that I can further develop off of and learn from...at least thats the best way I learn.....Thank s againLeave a comment:
-
im not sure why everyone is so hostile to help...writing that little bit of code helped me out alot and didnt hurt anyone...i am just trying to improve this app and learn at the same time...Thanks guysLeave a comment:
-
my first statement says it has been a while since I had JAVA...meaning a class about a year ago with no practice...so that makes me a NOVICE....i am trying to pick this stuff up without guess I just have issues with the formating and use of some items...i am much better with VBLeave a comment:
-
Im trying this and getting Grades.java:39: reached end of file while parsing which I have no idea what that means....thanks again
Code:throw new exception(InvalidGradeException); } for(i = 0;i < grades.length; ++i) { sum += grades[i]; } ave = sum / 5.0f;
Leave a comment:
-
I am 100% a novice and never claimed to know fully what Im doing. to politely put me down will not improve the issue now will it?Leave a comment:
No activity results to display
Show More
Leave a comment: