Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.time.ZoneOffset;

//ZoneOffset is the period of time representing 
//a difference between Greenwich/UTC and a time zone.

public class Main {
    public static void main(String[] args) {
        ZoneOffset offset = ZoneOffset.of("+2:00");
        System.out.println(offset);
    }
}