---
# System prepended metadata

title: 2490. Circular Sentence
tags: [Leetcode, Easy]

---

# 2490. Circular Sentence
###### tags: `Leetcode` `Easy`
Link: https://leetcode.com/problems/circular-sentence/
## Code
```java=
class Solution {
    public boolean isCircularSentence(String sentence) {
        String[] split = sentence.split(" ");
        int n = split.length;
        for(int i=0; i<n; i++){
            if(i+1<n && split[i].charAt(split[i].length()-1)!=split[i+1].charAt(0)) return false;
            else if(i+1==n && split[i].charAt(split[i].length()-1)!=split[0].charAt(0)) return false;
        }
        return true;
    }
}
```