Category: Java

MySql – Create Table

In MySQL, the syntax for creating a simple table is given as below: create table table_name( column_name1 column_type1, column_name2 column_type2, column_name3 column_type3 ); Suppose , a table employee is to… Read more »

List toArray() Method

java.util.List.toArray() method can be used to convert a list to an array. Syntax of List toArray() Method Object[] java.util.List.toArray() The return type of this method is Object[]. Example.java The below… Read more »