This file contains 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 |
This file contains 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
import java.io.*; | |
import java.util.ArrayList; | |
import java.util.Scanner; | |
public class t2 { | |
public static void main(String [] args) throws IOException | |
{ | |
Scanner scanner = new Scanner(new File("t2.txt")); | |
//int [] array = new int [100]; |
This file contains 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
import java.io.PrintWriter; | |
import java.io.File; | |
import java.io.*; | |
public class t1{ | |
public static void main(String [] args) | |
{ | |
String fileName = "t1.txt"; | |
File file = new File (fileName); | |
PrintWriter printWriter = null; |
This file contains 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
import java.util.Comparator; | |
class DoubleNode<T> { | |
T data; | |
DoubleNode<T> previous, next; | |
DoubleNode (T data) { | |
this.data = data; | |
} | |
} |