What do you want to save?
Add Code snippet
New code examples
-
Java 2021-09-20 07:19:04
Implement TCP Server for transferring files using Socket and ServerSocket
//Client import java.io.*; import java.net.*; public class Client { public static void main(String[] args) throws Exception { Socket s = new Socket("127.0.0.1", 1234); if (s.isConnected()) { System.out.println(&... Add solution -
Java 2021-09-17 02:37:02
java solution milk the cow
import java.util.*; import java.io.*; /* ID: coconut LANG: JAVA TASK: milk2 */ public class milk2 { static farmer[] farmers; public static void main(String[] args) throws Exception { Scanner sc = new Scanner(new File("milk2.in")... Add solution -
Java 2021-09-08 06:45:04
fibonacci sequence java using recursion
/* Author: Jeffrey Huang This finds the fibonacci number using a term provided by a user A recursive method is used. b) 9 calls are made to the fibonacci sequence in order to compute the 5th term. */ import java.io.*; public class Fibonacci_JeffreyHuang... Add solution -
Java 2021-09-07 09:40:01
filterreader converts a string to uppercase java
import java.io.*; public class TextFile { public static void main (String[] args) throws IOException { File file1 = new File("intext.txt"); File file2 = new File("outtext.txt"); char CharCounter = 0; ... Add solution -
Java 2021-08-27 08:39:01
java usaco code
/* Use the slash-star style comments or the system won't see your identification information */ /* ID: your_id_here LANG: JAVA TASK: test */ import java.io.*; import java.util.*; class test { public static void main (String [] args) throws IOExcepti... Add solution