We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff8b624 commit c7a102bCopy full SHA for c7a102b
1 file changed
Strings.java
@@ -0,0 +1,14 @@
1
+package com.amneziahookahlounge
2
+
3
4
+public class Main{
5
+ public static void main(String [] args)
6
+ {
7
+ //Since the variable is a reference type we must use the new operator
8
+ //When we use a reference to a variable we must instantiate the variable with the new operator
9
+ String message= "Hello Guys";
10
+ System.out.println(message.endsWith("!!"));//prints true
11
+ System.out.println(message.startsWith("a"));//prints false
12
13
+ }
14
+}
0 commit comments