Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

Run the ls command in the terminal to see the uncompiled .java file

public static void getFileList(){
    try
    {
        String lscmd = "ls *.c";
        Process p=Runtime.getRuntime().exec(lscmd);
        p.waitFor();
        BufferedReader reader=new BufferedReader(new InputStreamReader(p.getInputStream()));
        String line=reader.readLine();
        while(line!=null)
        {
            System.out.println(line);
            line=reader.readLine();
        }
    }
    catch(IOException e1) {
        System.out.println("Pblm found1.");
    }
    catch(InterruptedException e2) {
        System.out.println("Pblm found2.");
    }

    System.out.println("finished.");
}
Comment

PREVIOUS NEXT
Code Example
Java :: 2 multiples recursion 
Java :: how to scroll down chrome browser in selenium java 
Java :: Jax-RS PUT annotation 
Java :: sendPlanUpgrade 
Java :: jsp form upload file 
Java :: data base spring 
Java :: fill a 2d array java 
Java :: how to get the last vowel of a string in java 
Java :: recursive in java 
Java :: java decrypt CryptoJS 
Java :: vibration android studio 
Java :: Rotate Left k cells java 
Java :: Sling authentication handler example 
Java :: how to check android version 9 above programatically 
Java :: java setting logging with rotation logback 
Java :: java 001 
Java :: make a string bean spring xml 
Java :: docker how to pass params to spring boot application 
Java :: struct in java 
Java :: iterade dict javacirpt 
Java :: int array to map java 
Java :: nullpointerexception 
Java :: java hashtable 
Java :: identifier in java 
Java :: java check if instance of subclass 
Java :: print a letter in java 
Java :: java tamanho de um vetor 
Java :: how to find a string in a sentence in java 
Java :: write ajva program to vheck if anumber is less than 20 and greater than 5. It generates the exception out of range otherwise. If the number is within the range , then it displays the square of that number. 
Java :: in java write a code that suppose the following input is supplied to the program: 9 Then, the output should be: 12096 (99+999+9999+999) 
ADD CONTENT
Topic
Content
Source link
Name
6+4 =