Author : admin

Read more

import React from “react”; import {Table, TableHeader, TableColumn, TableBody, TableRow, TableCell} from “@nextui-org/react”; export default function App() { return ( <Table aria-label=”Example static collection table”> <TableHeader> <TableColumn>NAME</TableColumn> <TableColumn>ROLE</TableColumn> <TableColumn>STATUS</TableColumn> </TableHeader> <TableBody> <TableRow key=”1″> <TableCell>Tony Reichert</TableCell> <TableCell>CEO</TableCell> <TableCell>Active</TableCell> </TableRow> <TableRow key=”2″> <TableCell>Zoey Lang</TableCell> <TableCell>Technical Lead</TableCell> <TableCell>Paused</TableCell> </TableRow> <TableRow key=”3″> <TableCell>Jane Fisher</TableCell> <TableCell>Senior Developer</TableCell> <TableCell>Active</TableCell> </TableRow> <TableRow ..

Read more

package com.core.java.collections; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; public class CollectionsBinarySearch { public static void main(String[] args) { List<Integer> al = new ArrayList<Integer>(); al.add(10); al.add(20); al.add(30); al.add(40); al.add(50); // The last parameter specifies the comparator // method used for sorting. int index = Collections.binarySearch( al, 50, Collections.reverseOrder()); System.out.println(“Found at index ” + index); ..

Read more