Saturday 27 January 2018

A Simple Java Code To Open Notepad || Java Tricks


Only 3.9% of viewers are subscribing to my channel 😓.
I request you to please give click on Subscribe button.
It really helps me grow 😢.



Source Code

import java.io.IOException;

import java.util.*;

class Notepad

{

public static void main(String args[])

{

Runtime rs=Runtime.getRuntime();

try

{

rs.exec("notepad");

}

catch(IOException e)

{

System.out.println(e);

}

}



}


No comments:

Post a Comment