Here you can find the source of findDayOfWeek(String threeLetters)
public static DayOfWeek findDayOfWeek(String threeLetters)
//package com.java2s; /* (c) 2017 Open Source Geospatial Foundation - all rights reserved * This code is licensed under the GPL 2.0 license, available at the root * application directory.// w w w .ja va 2 s . co m */ import java.time.DayOfWeek; import java.time.format.TextStyle; import java.util.Locale; public class Main { public static DayOfWeek findDayOfWeek(String threeLetters) { for (DayOfWeek dow : DayOfWeek.values()) { if (threeLetters.equals(dow.getDisplayName(TextStyle.SHORT, Locale.ENGLISH))) { return dow; } } return null; } }