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 uk.ac.qub.programming; | |
import java.util.Scanner; | |
public class Obfuscate { | |
public static void main(String[] args) { | |
String userInput = ""; | |
String output = ""; | |
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 uk.ac.qub.networking; | |
import java.io.EOFException; | |
import java.io.IOException; | |
import java.io.ObjectInputStream; | |
import java.io.ObjectOutputStream; | |
import java.net.ServerSocket; | |
import java.net.Socket; | |
import javax.swing.JFrame; |
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 uk.ac.qub.networking; | |
import java.io.EOFException; | |
import java.io.IOException; | |
import java.io.ObjectInputStream; | |
import java.io.ObjectOutputStream; | |
import java.net.InetAddress; | |
import java.net.Socket; | |
import javax.swing.JFrame; | |
import javax.swing.JTextArea; |
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 uk.ac.qub.networking; | |
import java.io.*; | |
import java.net.*; | |
public class NewEchoClient { | |
public static void main(String[] args) { | |
String hostname = "localhost"; |
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 uk.ac.qub.networking; | |
import java.io.*; | |
import java.net.*; | |
public class NewEchoServer { | |
public static void main(String[] args) { | |
int port = 12321; | |
NewEchoServer server = new NewEchoServer( port ); |
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 uk.ac.qub.programming; | |
import java.util.GregorianCalendar; | |
public class PartThree9 { | |
public static void main(String[] args) { | |
GregorianCalendar calendar = (GregorianCalendar) | |
GregorianCalendar.getInstance(); |
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 qub.ac.uk.practical.week5; | |
// import scanner | |
import java.util.Scanner; | |
public class PracticalQuestionTwo { | |
/** | |
* A method for calling a case converter method | |
* @param args |
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
/** | |
* Main class. | |
**/ | |
package uk.ac.qub.programming; | |
import java.io.BufferedReader; | |
import java.io.FileNotFoundException; | |
import java.io.FileReader; | |
import java.io.IOException; |
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 uk.ac.qub.programming; | |
import java.util.ArrayList; | |
public class PartSix { | |
/** | |
* @param args | |
*/ | |
public static void main(String[] args) { |
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 uk.ac.qub.programming; | |
public class PartTwo { | |
/** | |
* @param args | |
*/ | |
public static void main(String[] args) { | |
double[] temperatures = {3.4, 4.2, 9.0, 2.2, 4.5, 6.4, 3.1}; |
OlderNewer