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.*; | |
public class Client{ | |
public static void main(String[] args) { | |
String hostname = "localhost"; | |
int port = 5555; | |
Socket clientSocket = 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.Scanner; | |
public class GPACompute { | |
public static void main(String[] args) { | |
String[] course={"LT","ARW","Discrete","PBM","OM","ACP","ST2"}; | |
String[] input = new String[7]; | |
int[] credit = {2,3,3,3,2,3,3}; | |
System.out.println("-----GPA Calculation-----"); | |
Scanner kb = new Scanner(System.in); |
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 FindMax { | |
public static void main(String[] args) { | |
int[] array = new int[]{3,7,4,9,5,6,8,1,20,2}; | |
int currentMax = array[0]; | |
for(int i=1;i<=array.length-1;i++){ | |
if(currentMax < array[i]){ | |
currentMax = array[i]; | |
OlderNewer