{"action":"created","comment":{"url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/pulls/comments/41372972","id":41372972,"diff_hunk":"@@ -0,0 +1,69 @@\n+public class Validation {\n+\n+\t/** Method to validate expression\n+\t * \n+\t * @param expression : expression to validate \n+\t * @return true if validated, false otherwise\n+\t */\n+\tpublic static boolean isExpression(String expression) \n+\t{\n+\t\tif(expression == null)\n+\t\t\treturn false;\n+\t\tchar[] expressionArray = expression.toCharArray();\n+\t\tint length = expressionArray.length;\n+\t    int openCount = 0, closeCount = 0;\n+\t    int i = 0;\n+\t    \n+\t    /* validation for two consecutive letters or numbers */\n+\t    for(i = 0; i < (length-1); i++)\n+\t    {\n+\t\t\t\n+\t    \tif((Character.isLetter(expressionArray[i])))\n+\t    \t{\n+\t    \t\tif(Character.isLetter(expressionArray[i+1]) || expressionArray[i+1] == '(')\n+\t    \t\t\t\treturn false;\n+\t    \t}\n+\t    \tif(expressionArray[i] == ')')","path":"DS/AdvancedDataStructures/ParserForTruthTable/Validation.java","position":26,"original_position":26,"commit_id":"e5eb096f3bb8e485cd2866839b195f3e8cb024c4","original_commit_id":"e5eb096f3bb8e485cd2866839b195f3e8cb024c4","user":{"login":"Sonal4J","id":6659484,"avatar_url":"https://avatars.githubusercontent.com/u/6659484?v=3","gravatar_id":"","url":"https://api.github.com/users/Sonal4J","html_url":"https://github.com/Sonal4J","followers_url":"https://api.github.com/users/Sonal4J/followers","following_url":"https://api.github.com/users/Sonal4J/following{/other_user}","gists_url":"https://api.github.com/users/Sonal4J/gists{/gist_id}","starred_url":"https://api.github.com/users/Sonal4J/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sonal4J/subscriptions","organizations_url":"https://api.github.com/users/Sonal4J/orgs","repos_url":"https://api.github.com/users/Sonal4J/repos","events_url":"https://api.github.com/users/Sonal4J/events{/privacy}","received_events_url":"https://api.github.com/users/Sonal4J/received_events","type":"User","site_admin":false},"body":"can we combine it with the other if(expressionArray[i] == ')' || Character.isLetter(expressionArray[i]))","created_at":"2015-10-07T10:14:30Z","updated_at":"2015-10-07T10:14:30Z","html_url":"https://github.com/meta-priyamvada-chundawat/get2015/pull/26#discussion_r41372972","pull_request_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/pulls/26","_links":{"self":{"href":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/pulls/comments/41372972"},"html":{"href":"https://github.com/meta-priyamvada-chundawat/get2015/pull/26#discussion_r41372972"},"pull_request":{"href":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/pulls/26","id":46775112,"html_url":"https://github.com/meta-priyamvada-chundawat/get2015/pull/26","diff_url":"https://github.com/meta-priyamvada-chundawat/get2015/pull/26.diff","patch_url":"https://github.com/meta-priyamvada-chundawat/get2015/pull/26.patch","issue_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/issues/26","number":26,"state":"open","locked":false,"title":"Ads priyamvada assignment1","user":{"login":"meta-priyamvada-chundawat","id":13661475,"avatar_url":"https://avatars.githubusercontent.com/u/13661475?v=3","gravatar_id":"","url":"https://api.github.com/users/meta-priyamvada-chundawat","html_url":"https://github.com/meta-priyamvada-chundawat","followers_url":"https://api.github.com/users/meta-priyamvada-chundawat/followers","following_url":"https://api.github.com/users/meta-priyamvada-chundawat/following{/other_user}","gists_url":"https://api.github.com/users/meta-priyamvada-chundawat/gists{/gist_id}","starred_url":"https://api.github.com/users/meta-priyamvada-chundawat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meta-priyamvada-chundawat/subscriptions","organizations_url":"https://api.github.com/users/meta-priyamvada-chundawat/orgs","repos_url":"https://api.github.com/users/meta-priyamvada-chundawat/repos","events_url":"https://api.github.com/users/meta-priyamvada-chundawat/events{/privacy}","received_events_url":"https://api.github.com/users/meta-priyamvada-chundawat/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-05T12:35:57Z","updated_at":"2015-10-07T10:14:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bb2e099fa522727d9f2c8dd6569fcbb07ec3c605","assignee":{"login":"Sonal4J","id":6659484,"avatar_url":"https://avatars.githubusercontent.com/u/6659484?v=3","gravatar_id":"","url":"https://api.github.com/users/Sonal4J","html_url":"https://github.com/Sonal4J","followers_url":"https://api.github.com/users/Sonal4J/followers","following_url":"https://api.github.com/users/Sonal4J/following{/other_user}","gists_url":"https://api.github.com/users/Sonal4J/gists{/gist_id}","starred_url":"https://api.github.com/users/Sonal4J/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sonal4J/subscriptions","organizations_url":"https://api.github.com/users/Sonal4J/orgs","repos_url":"https://api.github.com/users/Sonal4J/repos","events_url":"https://api.github.com/users/Sonal4J/events{/privacy}","received_events_url":"https://api.github.com/users/Sonal4J/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/pulls/26/commits","review_comments_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/pulls/26/comments","review_comment_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/pulls/comments{/number}","comments_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/issues/26/comments","statuses_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/statuses/e5eb096f3bb8e485cd2866839b195f3e8cb024c4","head":{"label":"meta-priyamvada-chundawat:ADS-priyamvada-assignment1","ref":"ADS-priyamvada-assignment1","sha":"e5eb096f3bb8e485cd2866839b195f3e8cb024c4","user":{"login":"meta-priyamvada-chundawat","id":13661475,"avatar_url":"https://avatars.githubusercontent.com/u/13661475?v=3","gravatar_id":"","url":"https://api.github.com/users/meta-priyamvada-chundawat","html_url":"https://github.com/meta-priyamvada-chundawat","followers_url":"https://api.github.com/users/meta-priyamvada-chundawat/followers","following_url":"https://api.github.com/users/meta-priyamvada-chundawat/following{/other_user}","gists_url":"https://api.github.com/users/meta-priyamvada-chundawat/gists{/gist_id}","starred_url":"https://api.github.com/users/meta-priyamvada-chundawat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meta-priyamvada-chundawat/subscriptions","organizations_url":"https://api.github.com/users/meta-priyamvada-chundawat/orgs","repos_url":"https://api.github.com/users/meta-priyamvada-chundawat/repos","events_url":"https://api.github.com/users/meta-priyamvada-chundawat/events{/privacy}","received_events_url":"https://api.github.com/users/meta-priyamvada-chundawat/received_events","type":"User","site_admin":false},"repo":{"id":40301355,"name":"get2015","full_name":"meta-priyamvada-chundawat/get2015","owner":{"login":"meta-priyamvada-chundawat","id":13661475,"avatar_url":"https://avatars.githubusercontent.com/u/13661475?v=3","gravatar_id":"","url":"https://api.github.com/users/meta-priyamvada-chundawat","html_url":"https://github.com/meta-priyamvada-chundawat","followers_url":"https://api.github.com/users/meta-priyamvada-chundawat/followers","following_url":"https://api.github.com/users/meta-priyamvada-chundawat/following{/other_user}","gists_url":"https://api.github.com/users/meta-priyamvada-chundawat/gists{/gist_id}","starred_url":"https://api.github.com/users/meta-priyamvada-chundawat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meta-priyamvada-chundawat/subscriptions","organizations_url":"https://api.github.com/users/meta-priyamvada-chundawat/orgs","repos_url":"https://api.github.com/users/meta-priyamvada-chundawat/repos","events_url":"https://api.github.com/users/meta-priyamvada-chundawat/events{/privacy}","received_events_url":"https://api.github.com/users/meta-priyamvada-chundawat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/meta-priyamvada-chundawat/get2015","description":"Training repo for GET 2015 batch","fork":true,"url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015","forks_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/forks","keys_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/teams","hooks_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/hooks","issue_events_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/issues/events{/number}","events_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/events","assignees_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/assignees{/user}","branches_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/branches{/branch}","tags_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/tags","blobs_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/git/refs{/sha}","trees_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/statuses/{sha}","languages_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/languages","stargazers_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/stargazers","contributors_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/contributors","subscribers_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/subscribers","subscription_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/subscription","commits_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/commits{/sha}","git_commits_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/git/commits{/sha}","comments_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/comments{/number}","issue_comment_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/issues/comments{/number}","contents_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/contents/{+path}","compare_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/merges","archive_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/downloads","issues_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/issues{/number}","pulls_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/pulls{/number}","milestones_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/milestones{/number}","notifications_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/labels{/name}","releases_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/releases{/id}","created_at":"2015-08-06T11:28:04Z","updated_at":"2015-09-02T07:11:47Z","pushed_at":"2015-10-06T05:28:16Z","git_url":"git://github.com/meta-priyamvada-chundawat/get2015.git","ssh_url":"git@github.com:meta-priyamvada-chundawat/get2015.git","clone_url":"https://github.com/meta-priyamvada-chundawat/get2015.git","svn_url":"https://github.com/meta-priyamvada-chundawat/get2015","homepage":null,"size":1100,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":17,"forks":0,"open_issues":17,"watchers":0,"default_branch":"master"}},"base":{"label":"meta-priyamvada-chundawat:master","ref":"master","sha":"f397d8e7ce5fd5e85264f815c7c72504ee28ffa5","user":{"login":"meta-priyamvada-chundawat","id":13661475,"avatar_url":"https://avatars.githubusercontent.com/u/13661475?v=3","gravatar_id":"","url":"https://api.github.com/users/meta-priyamvada-chundawat","html_url":"https://github.com/meta-priyamvada-chundawat","followers_url":"https://api.github.com/users/meta-priyamvada-chundawat/followers","following_url":"https://api.github.com/users/meta-priyamvada-chundawat/following{/other_user}","gists_url":"https://api.github.com/users/meta-priyamvada-chundawat/gists{/gist_id}","starred_url":"https://api.github.com/users/meta-priyamvada-chundawat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meta-priyamvada-chundawat/subscriptions","organizations_url":"https://api.github.com/users/meta-priyamvada-chundawat/orgs","repos_url":"https://api.github.com/users/meta-priyamvada-chundawat/repos","events_url":"https://api.github.com/users/meta-priyamvada-chundawat/events{/privacy}","received_events_url":"https://api.github.com/users/meta-priyamvada-chundawat/received_events","type":"User","site_admin":false},"repo":{"id":40301355,"name":"get2015","full_name":"meta-priyamvada-chundawat/get2015","owner":{"login":"meta-priyamvada-chundawat","id":13661475,"avatar_url":"https://avatars.githubusercontent.com/u/13661475?v=3","gravatar_id":"","url":"https://api.github.com/users/meta-priyamvada-chundawat","html_url":"https://github.com/meta-priyamvada-chundawat","followers_url":"https://api.github.com/users/meta-priyamvada-chundawat/followers","following_url":"https://api.github.com/users/meta-priyamvada-chundawat/following{/other_user}","gists_url":"https://api.github.com/users/meta-priyamvada-chundawat/gists{/gist_id}","starred_url":"https://api.github.com/users/meta-priyamvada-chundawat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meta-priyamvada-chundawat/subscriptions","organizations_url":"https://api.github.com/users/meta-priyamvada-chundawat/orgs","repos_url":"https://api.github.com/users/meta-priyamvada-chundawat/repos","events_url":"https://api.github.com/users/meta-priyamvada-chundawat/events{/privacy}","received_events_url":"https://api.github.com/users/meta-priyamvada-chundawat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/meta-priyamvada-chundawat/get2015","description":"Training repo for GET 2015 batch","fork":true,"url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015","forks_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/forks","keys_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/teams","hooks_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/hooks","issue_events_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/issues/events{/number}","events_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/events","assignees_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/assignees{/user}","branches_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/branches{/branch}","tags_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/tags","blobs_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/git/refs{/sha}","trees_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/statuses/{sha}","languages_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/languages","stargazers_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/stargazers","contributors_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/contributors","subscribers_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/subscribers","subscription_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/subscription","commits_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/commits{/sha}","git_commits_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/git/commits{/sha}","comments_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/comments{/number}","issue_comment_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/issues/comments{/number}","contents_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/contents/{+path}","compare_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/merges","archive_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/downloads","issues_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/issues{/number}","pulls_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/pulls{/number}","milestones_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/milestones{/number}","notifications_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/labels{/name}","releases_url":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/releases{/id}","created_at":"2015-08-06T11:28:04Z","updated_at":"2015-09-02T07:11:47Z","pushed_at":"2015-10-06T05:28:16Z","git_url":"git://github.com/meta-priyamvada-chundawat/get2015.git","ssh_url":"git@github.com:meta-priyamvada-chundawat/get2015.git","clone_url":"https://github.com/meta-priyamvada-chundawat/get2015.git","svn_url":"https://github.com/meta-priyamvada-chundawat/get2015","homepage":null,"size":1100,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":17,"forks":0,"open_issues":17,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/pulls/26"},"html":{"href":"https://github.com/meta-priyamvada-chundawat/get2015/pull/26"},"issue":{"href":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/issues/26"},"comments":{"href":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/meta-priyamvada-chundawat/get2015/statuses/e5eb096f3bb8e485cd2866839b195f3e8cb024c4"}}}}