class HelloWorld{
public static void main(String args[]){
[Link]("CITM 2nd Aug 2023 - HelloWorld");
}
}
import [Link];
public class Twice{
public static void main(String[] args) {
Scanner scanner = new Scanner([Link]);
[Link]("Enter any Number : " );
int number = [Link]();
[Link]("The double of "+ number + " is " + number*2);
}
}
import [Link];
public class Main
{
public static void main(String[] args) {
// [Link]("citm Welcome to Online IDE!! Happy Coding :)");
Scanner scanner = new Scanner([Link]);
[Link]("Enter any Number : " );
int number = [Link]();
[Link]("The double of "+ number + " is " + number*2);
if (number<50)
[Link]("Fail");
else
[Link]("PASS");
}
}
import [Link];
import [Link];
public class DisplayDate {
public static void main(String[] args) {
// Create a Date object representing the current date and time
Date currentDate = new Date();
// Create a SimpleDateFormat object to format the date
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd
HH:mm:ss");
// Format the current date using the SimpleDateFormat
String formattedDate = [Link](currentDate);
// Display the formatted date
[Link]("Current date and time: " + formattedDate);
}
}