answersLogoWhite

0

Strings are used to represent text data. This lets you work with names and other variables that hold text.

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

How you convert int to string in jsp?

The same way you would in a regular java program. int i = 10; String s = i + ""; after the above line of code the variable s will have "10" as a string value...


Which is the best way to convert numbers in string under java?

All of the Java number classes have a parse[type] method, like parseInt() in Integer or parseDouble() in Double that convert Strings to primitive numbers. String s = getInput(); int var = Integer.parseInt(s);


What has the author Patrick Niemeyer written?

Patrick Niemeyer has written: 'Learning Java' -- subject(s): Java (Computer program language) 'Learning Java' -- subject(s): Java (Computer program language), Java (programmeertaal) 'Java Reference Library on the Web'


Can you use scanf to get a string to a c program?

Certainly. That's what sequence %s is good for.


Write a Java program to generate a copy of itself?

public class S{public static void main(String[]a){String o="public class S{public static void main(String[]a){String o=%c%s%c;System.out.printf(o,34,o,34);}}";System.out.printf(o,34,o,34);}}


What has the author Joe Weber written?

Joe Weber has written: 'Using Java 1.2' -- subject(s): Java (Computer program language) 'Using Java 1.1' -- subject(s): Java (Computer program language)


What is the error in exception handling in java with example?

class Demo { public static void main(String s[]) { System.out.println("hello java frm Demo"); } } class Demo1 { public static void main(String s[]) { System.out.println("hello java frm Demo1"); String z={" "}; Demo.main(); } }


What has the author Patrick Chan written?

Patrick Chan has written: 'The Java class libraries, second edition, volume 1' -- subject(s): Java (Computer program language) 'The Java(TM) Developers Almanac 1999' -- subject(s): Java (Computer program language), Java (Langage de programmation) 'The Java developers almanac 1.4' -- subject(s): Java (Computer program language) 'Java Developer's Almanac'


What has the author Patrick Naughton written?

Patrick Naughton has written: 'Java 1.1' -- subject(s): Java (Computer program language), Internet programming 'Java 2TM' -- subject(s): Computer Technology, Nonfiction, OverDrive 'Java' -- subject(s): Java (Computer program language), Internet programming


What has the author Elliotte Rusty Harold written?

Elliotte Rusty Harold has written: 'Java Network Programming' 'Java Developer's Resource' -- subject(s): Java (Computer program language) 'Effective XML' -- subject(s): XML (Document markup language) 'XML 1.1 Bible' -- subject(s): OverDrive, Computer Technology, Nonfiction 'Java Network Programming (Java Series (O'Reilly & Associates).)' 'Java I/O' -- subject(s): Java (Computer program language), Programmation (Informatique), Java (Langage de programmation), Ein-Ausgabe, Java , Programmierung 'Processing XML with Java' -- subject(s): Java (Computer program language), XML (Document markup language) 'XML in a Nutshell' 'Java I/O' -- subject(s): Java (Computer program language)


Write a program to count the length of a string without using built in functions?

In JavaScript: To find the length of the string we you length method. __ __ __ Click the button to return the number of characters in the string "Hello World!". click here __ __ function myFunction() { var str = "Hello World!"; var n = str.length; document.getElementById("demo").innerHTML = n; } __ __ __ Hope this helps. Thank you


What has the author Cay S Horstmann written?

Cay S. Horstmann has written: 'Core Java 2' -- subject(s): Java (Computer program language), Java 2.