vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Java (https://vborg.vbsupport.ru/showthread.php?t=53992)

filburt1 06-07-2003 11:24 PM

Java
 
Anybody who's bored, try running this code and pasting the output here:
Code:

import java.net.NetworkInterface;
import java.net.SocketException;
import java.util.Enumeration;

public class UniqueId
{
    public static void main(String[] args)
    {
        try
        {
            Enumeration e = NetworkInterface.getNetworkInterfaces();
            NetworkInterface n;

            while (e.hasMoreElements())
            {
                n = (NetworkInterface)e.nextElement();
                System.out.println(n.hashCode());
            }

            System.out.println("Getting unique ID...");
        }
        catch (SocketException e)
        {
            e.printStackTrace();
        }
    }
}

Does it display the exact same value(s) each time you run it?

The output should be like
Code:

2130706433
-1062731612
Getting unique ID...

Would be greatly appreciated; thanks :)

filburt1 06-07-2003 11:53 PM

I'm guessing nobody's used Java before, come to think of it...:(

Dean C 06-08-2003 08:56 AM

I have JAVA compatibility on mozilla - don't know how to use it ?

filburt1 06-08-2003 01:14 PM

It's not an applet but code to compile and run in the command prompt (or a Java IDE)...

Chris M 06-08-2003 06:53 PM

If you told me how to, I would know:)

Satan

filburt1 06-08-2003 06:54 PM

:p Don't worry, I'm going to put an applet online soon. I'm just tweaking it a bit (and relearning half my Java from two years ago).


All times are GMT. The time now is 12:27 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01106 seconds
  • Memory Usage 1,715KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete