java programming in linux

Discussion in 'General Linux' started by Prashant Agrawal, Sep 13, 2013.

  1. Prashant Agrawal

    Prashant Agrawal New Member

    Messages:
    6
    Likes Received:
    2
    Trophy Points:
    3
    can anybody help me to write a "java program" to display the list of devices connected to the system including the physical names and its instance number without using the system calls....please help me out

  2. ryanvade

    ryanvade Administrator Staff Member Staff Writer

    Messages:
    1,151
    Likes Received:
    389
    Trophy Points:
    83
  3. Prashant Agrawal

    Prashant Agrawal New Member

    Messages:
    6
    Likes Received:
    2
    Trophy Points:
    3
    I can't....I have to code it in java....help me
  4. ryanvade

    ryanvade Administrator Staff Member Staff Writer

    Messages:
    1,151
    Likes Received:
    389
    Trophy Points:
    83
  5. DevynCJohnson

    DevynCJohnson Well-Known Member Staff Member Staff Writer

    Messages:
    1,158
    Likes Received:
    983
    Trophy Points:
    113
  6. ryanvade

    ryanvade Administrator Staff Member Staff Writer

    Messages:
    1,151
    Likes Received:
    389
    Trophy Points:
    83
    Had to, BASH is so much more suited to this kind of task...
  7. DevynCJohnson

    DevynCJohnson Well-Known Member Staff Member Staff Writer

    Messages:
    1,158
    Likes Received:
    983
    Trophy Points:
    113
    On my wall, I suggested he use a Java command that allows programmers to use shell commands. For example, in Python3, I can use os.system('date') to use the shell's date command.

Share This Page