😶🌫️
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
public class test { | |
public static void main(String args[]) { | |
int x = 1; | |
while(x != 0) { | |
x = Integer.valueOf(System.console().readLine("enter number: ")); | |
switch (x) { | |
case 1: oddnum(); | |
break; | |
case 2: evennum(); |
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
<?php | |
$start = 2; | |
$end = 12; | |
echo "<pre>1234567890123456789012345678901234567890"; | |
for ($i = 1; $i <= $end; $i++) { | |
if ($i >= 10) | |
echo "<br> $i $i"; |
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
<html> | |
<body> | |
<form action="process.php" method="post"> | |
<center> | |
Input a number(1-99) | |
<input type="text" name="num" size="2" maxlength="2"/><br/> | |
<input type="submit" value="Submit It!"/> | |
<input type="reset" value="Clear It!"/> | |
</center> | |
</form> |
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
package Main; | |
import java.util.Scanner; | |
public class gweans { | |
public static void main(String[] args) { | |
Scanner s = new Scanner(System.in); | |
int testCase = s.nextInt(); | |
s.nextLine(); |
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
package Main; | |
import java.util.ArrayList; | |
import java.util.Scanner; | |
public class Doublets { | |
public static void main(String[] args) { | |
Scanner s = new Scanner(System.in); | |
ArrayList<String> l = new ArrayList<String>(); | |
boolean b = false; |
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
package Main; | |
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.util.Scanner; | |
public class ImageTransformation { | |
public static void main(String[] args) { | |
File file = new File("case.in"); | |
Scanner sc; |
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
package Main; | |
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
public class MyDijkstra { |
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.LinkedList; | |
public class Node { | |
private LinkedList<Node> edges; | |
private char name; | |
Node(char name) { | |
this.name = name; | |
edges = new LinkedList<Node>(); |
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.File; | |
import java.io.FileNotFoundException; | |
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.HashMap; | |
import java.util.HashSet; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.Scanner; |
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.File; | |
public class ls { | |
public static void main(String[] args) { | |
if (args.length == 0) System.out.println("please input path ..."); | |
else { | |
dirlist(args[0]); | |
} | |
} | |