Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Dilenger4

    Does anyone know how i can set the

    Does anyone know how i can set the size of a character array to the size of a file? The length method in the File class returns a long value representing the number of bytes in the file. So this declaration long[] c = new long[file.length()]; would be the right size when reading Unicode...
  2. Dilenger4

    Hello can anyone answer this questi

    Thanks for the help. This was one of those trick questions that they try and give you on the Java Programmer Exam. =C)
  3. Dilenger4

    Hello can anyone answer this questi

    Hello can anyone answer this question for me. Ive been looking over this block of code below. They say that the class defines a method not a constructor since it has a return value. The method happens to have the same name as the class but that is irrelevant. So i have one question. 1.)If...
  4. Dilenger4

    Package Directives?

    hey thanks guys. sorry i didn't reply back sooner. My modem software got corrupted. I switched to an IDE and just configured the classpath from there. I kind of got sick of coding on notepad. thanks for the help.
  5. Dilenger4

    Package Directives?

    I don't know it dosen't seem to be working. There must be another problem. The files are stored in C:\Java\Classes every file has "package Classes;" at the top. The files compile fine. The CLASSPATH in the autoexec.bat is C:\Java but i still cant run. Im stumped.
  6. Dilenger4

    Package Directives?

    "what your compiler is actually looking for is c:\java\java" Right. It would be looking for a subdirectory Java under Java which i dont have. But i do have other subdirectories under C:\Java. For instance i have C:\Java\MyClasses now if i put "package MyClasses;" at the top...
  7. Dilenger4

    Package Directives?

    Ok say if i want subpackages off of Java. What would i do then? Should i set the CLASSPATH to C:\Java? Im not too sure. Thanks for the help!
  8. Dilenger4

    Package Directives?

    Does anyone know how i can use packages to subdivide my .class files? Some reason i can't get it to work. Say if my main directory where my files are stored is C:\Java. If i put package Java; at the top of a file and compile then run i keep getting "NoClassDefFoundError". My CLASSPATH...
  9. Dilenger4

    Segments/Offsets

    So when we say somthing like below. dx is just pointing to the offset of the Message? The actual offset of the message is not contained within dx? Same for ax too. Message db "Hello World!$" Mov dx, OFFSET Message Mov ax, SEG Message So "Hello World" would be 10 bits...
  10. Dilenger4

    Unsure of this loop.

    Exactly. When i saw this done i was wondering what the use of the loop was. Thanks for your comment.
  11. Dilenger4

    Unsure of this loop.

    I was looking over an old program that somone had coded and im not sure of this loop. I would ask the person who coded this but i havent seen him in a while. I understand the logic but im not sure of the use of the loop. If an array is constructed with 10 elements ie... int[9] then on the...
  12. Dilenger4

    Starting from the ground up

    Here is a tutoral that is pretty good. It's pretty much to the point. Good Luck! http://burks.bton.ac.uk/burks/language/asm/asmtut/asm1.htm
  13. Dilenger4

    Segments/Offsets

    First off i just want to say hi to everybody! Im a Java/Visual Basic programmer of 3 years and a always wanted to learn assembly, but im having alittle trouble understanding segments and offsets. At the bottom is a piece of a simple Hello World prog using a86 compiler. The way segments and...

Part and Inventory Search

Back
Top