জাভা withMonth
🌈জাভা withMonth কি?
📋জাভা withMonth হলো মাসের মান বের করার পদ্ধতি।
⚒️জাভা withMonth মাসের মান বের করতে ব্যবহৃত হয়।
জাভা withMonth মাসের মান বের করার উদাহরণ।
java
import java.time.LocalDateTime;
public class Main {
public static void main(String[] args) {
LocalDateTime dateTime = LocalDateTime.now();
System.out.println(dateTime.withMonth(12));
}
}