Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: simulate calculation ?

  1. #1
    Junior Member
    Join Date
    Mar 2012
    Location
    JAVA Forums
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default simulate calculation ?

    How can i simulate what happens in registry <-> memory <-> CPU - during a simple calculation like x = z+w , using Java program on net beans ?


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: simulate calculation ?

    What exactly do you mean? What have you tried? Where are you stuck?
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Junior Member
    Join Date
    Mar 2012
    Location
    JAVA Forums
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: simulate calculation ?

    int x=2 ; /Reg1
    int z=6
    int [2] w={5,4,7,8,9};

    public static IO(string x)
    if "first 2 digits is 01" do the calculation for the next digits "10" that mean .........

    but i want this in 0/1 digits like string a= "0110110"; /first 2 digts is the method 3rd and 4th "10" digits is reg location for the index , 5th & 6th is result location in reg

  4. #4
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: simulate calculation ?

    Okay, and what part of that are you having trouble with? What have you tried? Where exactly are you stuck? Break your problem down into smaller pieces, then concentrate on a single piece. It's pretty hard to answer "how do I do this" type questions other than by pointing you to google or the tutorials.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. Simulate Latency
    By pixelDepth in forum Java Networking
    Replies: 6
    Last Post: November 30th, 2011, 08:26 AM
  2. Class that will simulate a book catalog system
    By fatika26 in forum Object Oriented Programming
    Replies: 4
    Last Post: November 17th, 2011, 08:34 AM
  3. I need calculation
    By Swiss518 in forum Loops & Control Statements
    Replies: 7
    Last Post: January 27th, 2011, 01:26 PM
  4. RPM Calculation
    By fobos3 in forum Algorithms & Recursion
    Replies: 2
    Last Post: September 21st, 2010, 08:53 AM
  5. SQL Time Calculation
    By r12ki in forum JDBC & Databases
    Replies: 3
    Last Post: July 31st, 2009, 03:54 AM