/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

import java.time.* ;
import java.time.format.* ;
import java.util.stream.* ;
import java.time.temporal.TemporalAdjusters ;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		System.out.println( Ideone.germanDaysOfWeek );
		
		String input = "Montag";
	
	    LocalDate today = LocalDate.now();
	    LocalDate nextWeekday = today.with(
	        TemporalAdjusters.next(germanDaysOfWeek.get(input)));
	        
	    System.out.println( nextWeekday ) ;
	}
	
	private static final Map<String, DayOfWeek> germanDaysOfWeek =
	    Arrays
	    .stream( DayOfWeek.values() )
	    .collect(
	        Collectors.toMap(
	            d -> d.getDisplayName(TextStyle.FULL, Locale.GERMAN), 
	            d -> d
	        )
	    );
}