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:
    910
    Likes Received:
    290
    Trophy Points:
    63
    Why not use BASH?
  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:
    910
    Likes Received:
    290
    Trophy Points:
    63
    DevynCJohnson likes this.
  5. DevynCJohnson

    DevynCJohnson Super Moderator Staff Member Staff Writer

    Messages:
    980
    Likes Received:
    859
    Trophy Points:
    93
  6. ryanvade

    ryanvade Administrator Staff Member Staff Writer

    Messages:
    910
    Likes Received:
    290
    Trophy Points:
    63
    Had to, BASH is so much more suited to this kind of task...
  7. DevynCJohnson

    DevynCJohnson Super Moderator Staff Member Staff Writer

    Messages:
    980
    Likes Received:
    859
    Trophy Points:
    93
    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