Java tutorial
//package com.java2s; public class Main { private static boolean endsWithRightParenthesis(String str) { return str.trim().endsWith(")"); } }