Answers for "strings in java"

7

how to make a string java

String newString = "Hello World";
Posted by: Guest on September-12-2020
4

declare String in java

String stringName = "your string content";
Posted by: Guest on May-29-2020
1

string method example in java

public boolean equalsIgnoreCase(String s)
------------------------------------------
String x = "Exit"; 
System.out.println( x.equalsIgnoreCase("EXIT")); // is "true" 
System.out.println( x.equalsIgnoreCase("tixe")); // is "false"
Posted by: Guest on January-25-2020
3

java string methods

static String valueOf(int i) - returns the string representation of the int 
argument.
Posted by: Guest on October-23-2020
0

java String method

String txt = "Hello World";
System.out.println(txt.toUpperCase());   // Outputs "HELLO WORLD"
System.out.println(txt.toLowerCase());   // Outputs "hello world"
Posted by: Guest on July-17-2021
0

strings in java

StringBuilder str = new StringBuilder();
str.append("GFG");
Posted by: Guest on August-09-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language