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 SkipVought 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. jkaa679

    Overlaying Images

    you could also try: <img src='image1.gif' style='position:absolute; left:30px; top:20px;'> <img src='image2.gif' style='position:absolute; left:40px; top:30px;'> this gives you more freedom in howmuch the images will overlap each other. the top- and left-attributes give the distance from the...
  2. jkaa679

    Big-endian vs. Little-endian

    The easiest thing to do is read the data into a ByteBuffer (java.nio.ByteBuffer, as of J2SDK 1.4.0). example: int datasize = <lengthOfInputData>; ByteBuffer bb = ByteBuffer.allocate(datasize); bb.order(ByteOrder.LITTLE_ENDIAN); then you use bb.putInt() or bb.put() to fill the ByteBuffer with...
  3. jkaa679

    Split method in Java

    The method &quot;public String[] split(String regex)&quot; has been introduced with Java 1.4. Type &quot;java -version&quot; in a console window, the output should be something like java version &quot;1.4.0&quot; Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92) Java...
  4. jkaa679

    A class for getting the width and height of a image file (gif or jpg)

    There is no standard class to this, but it's actually fairly easy to write your own class to this. All you need to do is get the specs for the different filetypes (bmp, gif, jpg, png) and locate the position of the height and width information in a file's structure. For bmp generated with...
  5. jkaa679

    String Splitting [ and Joining ]

    Sun calls the method of joining 2 strings concat(), which has been available since atleast jdk1.1.4, the first jdk I used in 1998. e.g: String s1 = &quot;s11111&quot;, s2 = &quot;s22222&quot;; String s3 = s1.concat(s2); System.out.println(s3); will output s11111s22222
  6. jkaa679

    [q] What's the result, why?

    Your source wouldn't even compile, because access to a private variable is not allowed from outside classes. Anyway, v1 is not equal to v2, because you're comparing objects and not variables. the object name in the jvm of v1 is Value@601bb1 and of v2 is Value@ba34f2. As you can see, thes...
  7. jkaa679

    Can you print the file structure from Windows Explorer?

    You could also try using the classic DOS command &quot;tree&quot;. Start a command prompt, and type &quot;tree c:\ /f /a > ctree.txt&quot; (w/o quotes). This will output a tree like structured ascii text file named ctree.txt into your current directory.

Part and Inventory Search

Back
Top