преобразовать строку в дату SQL в Java
SimpleDateFormat sdf1 = new SimpleDateFormat("dd-MM-yyyy");
Fancy Flatworm
SimpleDateFormat sdf1 = new SimpleDateFormat("dd-MM-yyyy");
public class MainClass {
public static void main(String[] args) {
java.util.Date utilDate = new java.util.Date();
java.sql.Date sqlDate = new java.sql.Date(utilDate.getTime());
System.out.println("utilDate:" + utilDate);
System.out.println("sqlDate:" + sqlDate);
}
}
The words Alex, Bob, John, Lots, Maria are included, calculate the individual length and total length of these words.