oracle java
-
/* IMPORTANT: Multiple classes and nested static classes are supported */
/*
* uncomment this if you want to read input.
//imports for BufferedReader
import java.io.BufferedReader;
import java.io.InputStreamReader;//import for Scanner and other utility classes
import java.util.*;
*/// Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail
class TestClass {
public static void main(String args[] ) throws Exception {
/* Sample code to perform I/O:
* Use either of these methods for input//BufferedReader BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String name = br.readLine(); // Reading input from STDIN System.out.println("Hi, " + name + "."); // Writing output to STDOUT //Scanner Scanner s = new Scanner(System.in); String name = s.nextLine(); // Reading input from STDIN System.out.println("Hi, " + name + "."); // Writing output to STDOUT \*/ // Write your code here }
}
-
/* IMPORTANT: Multiple classes and nested static classes are supported */
/*
* uncomment this if you want to read input.
//imports for BufferedReader
import java.io.BufferedReader;
import java.io.InputStreamReader;//import for Scanner and other utility classes
import java.util.*;
*/// Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail
class TestClass {
public static void main(String args[] ) throws Exception {
/* Sample code to perform I/O:
* Use either of these methods for input//BufferedReader BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String name = br.readLine(); // Reading input from STDIN System.out.println("Hi, " + name + "."); // Writing output to STDOUT //Scanner Scanner s = new Scanner(System.in); String name = s.nextLine(); // Reading input from STDIN System.out.println("Hi, " + name + "."); // Writing output to STDOUT \*/ // Write your code here }
}
This forum is for problems with the CodeProject site. Please try https://www.codeproject.com/Questions/ask.aspx[^]. But you will need to add considerably more detail to your question. And if you are expecting someone to write your code for you, I am afraid that will not happen.