This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package learnjava.general; | |
/** | |
* Created by Isuru on 23/03/2017. | |
*/ | |
public class RandomCharacter { | |
/** Generates random character */ | |
public static char getRandomCharacter(char ch1, char ch2){ | |
return (char) (ch1 + Math.random() * (ch2 - ch1 + 1)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package learnjava.testing; | |
import javax.swing.*; | |
/** | |
* Created by Isuru on 20/03/2017. | |
*/ | |
public class Main { | |
public static void main(String args[]){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package learnjava.testing; | |
/** | |
* Created by Isuru on 20/03/2017. | |
*/ | |
public class Main { | |
public static void main(String args[]){ | |
System.out.println(" J A V V A"); | |
System.out.println(" J A A V V A A"); | |
System.out.println("J J AAAAA VV AAAAA"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
NewerOlder