example

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
example [2023/03/09 16:04] epsatisepexample [2024/06/19 19:50] (current) epsatisep
Line 7: Line 7:
  
 Please use superscript and subscript annotations to write powers and indexes, //e.g.//, m<sup>2</sup> and CO<sub>2</sub>. Please use superscript and subscript annotations to write powers and indexes, //e.g.//, m<sup>2</sup> and CO<sub>2</sub>.
- 
  
 ==== Caption Plugin Usage Examples ==== ==== Caption Plugin Usage Examples ====
Line 36: Line 35:
 </table> </table>
 </WRAP> </WRAP>
- 
- 
  
 Table {{ref>tlabel1}} shows the execution time results for each API. Table {{ref>tlabel2}} lists the fruit bought at the grocery. Table {{ref>tlabel1}} shows the execution time results for each API. Table {{ref>tlabel2}} lists the fruit bought at the grocery.
Line 69: Line 66:
 </figure> </figure>
 </WRAP> </WRAP>
- 
  
 Figure {{ref>flabel2}} illustrates the placement of two images side by side. Figure {{ref>flabel2}} illustrates the placement of two images side by side.
-  
 <WRAP centeralign> <WRAP centeralign>
 <figure flabel2> <figure flabel2>
Line 83: Line 78:
 </WRAP> </WRAP>
 </WRAP> </WRAP>
-<caption>Figures side by side</caption>+<caption>Images side by side</caption>
 </figure> </figure>
 </WRAP> </WRAP>
Line 135: Line 130:
  
 {{tasks>[namespace]?all&[flags]}} {{tasks>[namespace]?all&[flags]}}
 +
 +==== Code Listing Example ====
 +The server code is presented in Listing  {{ref>clabel0}}.
 +
 +<codeblock clabel0>
 +<caption>Server-side code </caption>
 +<code>
 +    public class CheckersServer {
 +    private static final int PORT = 12345;
 +    private static char[][] board;
 +    private static List<ClientHandler> clients = new ArrayList<>();
 +    public static void main(String[] args) {
 +        board = new char[8][8];
 +        initializeBoard();
 +        try (ServerSocket serverSocket = new ServerSocket(PORT)) {
 +            System.out.println("Checkers Server is running...");
 +            while (true) {
 +                Socket clientSocket = serverSocket.accept();
 +                ClientHandler clientHandler = new ClientHandler(clientSocket);
 +                clients.add(clientHandler);
 +                new Thread(clientHandler).start();
 +            }
 +        } catch (IOException e) {
 +            e.printStackTrace();
 +        }
 +    }
 +</code>    
 +</codeblock>
 +
  
 ==== AV Task Box Plugin Usage Example ==== ==== AV Task Box Plugin Usage Example ====
  • example.1678377888.txt.gz
  • Last modified: 2024/02/16 19:20
  • (external edit)