User Profile

Collapse

Profile Sidebar

Collapse
Dlangdaman
Dlangdaman
Last Activity: Jul 19 '07, 05:59 PM
Joined: Jun 27 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Dlangdaman
    replied to Help openning
    in Java
    I want to open them in netbeans to use
    See more | Go to post

    Leave a comment:


  • Dlangdaman
    started a topic Help openning
    in Java

    Help openning

    I have a folder full of (.class) files. I cannot get them to open in NetBeans...why? can you help
    See more | Go to post

  • Dlangdaman
    replied to any direction would be gr8
    in Java
    I just wanted to check and see if anyone is out there today
    See more | Go to post

    Leave a comment:


  • Dlangdaman
    replied to throw an exception in code
    in Java
    it unfortunately is needed..we have touched them, what I meant we havent learned is how to use the scanner class
    See more | Go to post

    Leave a comment:


  • Dlangdaman
    replied to any direction would be gr8
    in Java
    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
    ...
    See more | Go to post

    Leave a comment:


  • Dlangdaman
    replied to any direction would be gr8
    in Java
    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 accident
    See more | Go to post

    Leave a comment:


  • Dlangdaman
    replied to any direction would be gr8
    in Java
    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);
    ...
    See more | Go to post

    Leave a comment:


  • Dlangdaman
    replied to any direction would be gr8
    in Java
    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...Thanks
    See more | Go to post

    Leave a comment:


  • Dlangdaman
    started a topic any direction would be gr8
    in Java

    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...
    See more | Go to post

  • Dlangdaman
    replied to throw an exception in code
    in Java
    I have not yet learned that
    See more | Go to post

    Leave a comment:


  • Dlangdaman
    replied to throw an exception in code
    in Java
    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 start
    See more | Go to post

    Leave a comment:


  • Dlangdaman
    replied to throw an exception in code
    in Java
    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()
        {
    ...
    See more | Go to post

    Leave a comment:


  • Dlangdaman
    started a topic Exporting Access to Excel or PDF

    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
    See more | Go to post

  • Dlangdaman
    replied to throw an exception in code
    in Java
    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 program
    See more | Go to post

    Leave a comment:


  • Dlangdaman
    replied to throw an exception in code
    in Java
    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,
    ...
    See more | Go to post

    Leave a comment:


  • Dlangdaman
    replied to throw an exception in code
    in Java
    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 again
    See more | Go to post

    Leave a comment:


  • Dlangdaman
    replied to throw an exception in code
    in Java
    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 guys
    See more | Go to post

    Leave a comment:


  • Dlangdaman
    replied to throw an exception in code
    in Java
    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 VB
    See more | Go to post

    Leave a comment:


  • Dlangdaman
    replied to throw an exception in code
    in Java
    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;
    ...
    See more | Go to post

    Leave a comment:


  • Dlangdaman
    replied to throw an exception in code
    in Java
    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?
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...