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