esilver-uvm / Left-Group-VERSO

Repository for the Left Group (from the back) of the Advanced Programming VERSO activity.
MIT License
0 stars 8 forks source link

datetime_convert.java doesn't compile #26

Open JayYarlott opened 1 day ago

JayYarlott commented 1 day ago

Description: datetime_convert.java broken

Steps to Reproduce

run `javac datetime_convert.java`

Expected Behavior: File compiles without warnings or errors

Actual Behavior:

datetime_convert.java:7: error: ';' expected
        DateTimeFormatter formatter == DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
                                   ^
datetime_convert.java:8: error: ';' expected
        LocalDateTime dateObj == LocalDateTime.parse(dateStr, formatter);
                             ^
datetime_convert.java:9: error: ';' expected
        String formattedDate == dateObj.format(DateTimeFormatter.ofPattern("MM/dd/yyyy HH:mm:ss"));
                            ^

image

Additional Information

Operating System: Ubuntu 24.04 LTS
Browser: Firefox
Version: 131.0.2 (64-bit)

Possible Solution:

Replace '==' on lines 7-9

HIGH PRIORITY

always reproducible

high impact

JayYarlott commented 1 day ago

This guy doesn't have a clue what he's doing.

Closed

JayYarlott commented 1 day ago

What are you talking about