java programming in linux

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

  1. Prashant Agrawal

    Prashant Agrawal New Member

    Joined:
    Aug 25, 2013
    Messages:
    6
    Likes Received:
    1
    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

    Joined:
    Aug 4, 2012
    Messages:
    1,858
    Likes Received:
    654
  3. Prashant Agrawal

    Prashant Agrawal New Member

    Joined:
    Aug 25, 2013
    Messages:
    6
    Likes Received:
    1
    I can't....I have to code it in java....help me
     
  4. ryanvade

    ryanvade Administrator Staff Member Staff Writer

    Joined:
    Aug 4, 2012
    Messages:
    1,858
    Likes Received:
    654
  5. DevynCJohnson

    DevynCJohnson Well-Known Member Staff Member Staff Writer

    Joined:
    May 21, 2013
    Messages:
    1,635
    Likes Received:
    1,276
  6. ryanvade

    ryanvade Administrator Staff Member Staff Writer

    Joined:
    Aug 4, 2012
    Messages:
    1,858
    Likes Received:
    654
    Had to, BASH is so much more suited to this kind of task...
     
  7. DevynCJohnson

    DevynCJohnson Well-Known Member Staff Member Staff Writer

    Joined:
    May 21, 2013
    Messages:
    1,635
    Likes Received:
    1,276
    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