diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Main.java b/src/Main.java
index 930198c..ce87750 100644
--- a/src/Main.java
+++ b/src/Main.java
@@ -2,14 +2,38 @@
// click the icon in the gutter.
public class Main {
public static void main(String[] args) {
- //TIP Press with your caret at the highlighted text
- // to see how IntelliJ IDEA suggests fixing it.
- System.out.printf("Hello and welcome!");
-
- for (int i = 1; i <= 5; i++) {
- //TIP Press to start debugging your code. We have set one breakpoint
- // for you, but you can always add more by pressing .
- System.out.println("i = " + i);
+ if (isUnique("always")) {
+ System.out.println("this is unqiue");
+ } else {
+ System.out.println("this is not unquie");
}
}
-}
\ No newline at end of file
+
+
+ public static boolean isUnique(String word) {
+
+ for (int i = 0; i <= word.length(); i++) {
+ char a = word.charAt(i);
+ for (int j = i + 1; j < word.length(); j++) {
+ if (word.charAt(j) == a) {
+
+ return true;
+ }
+
+ }
+
+
+ }
+
+ return false;
+
+ }
+
+
+
+ }
+
+
+
+
+