java strings

Description

flash card set on the string data type, and functions
Anika Patry
Flashcards by Anika Patry, updated more than 1 year ago
Anika Patry
Created by Anika Patry over 7 years ago
8
1

Resource summary

Question Answer
what data type is a string? data class type
how do you declare a string? String name where name will be the name you want the string to be
how do you assign value to a string? name = "name" where "name" is the value and name is the name of the actual string
equalignorecase() check if one string equals another while ignoring the case sensitivity
equals() to check if one string equals another case sensitive
charAt( index ) returns a character at certain position
indexOf(charValue) returns the position of that character is in relation to the string
Substring( beginIndex) returns the letter where it is referanced to and then print the rest of the string
isEmpty() used to find out if we have an empty string
Show full summary Hide full summary

Similar

Java Week 5 Object Oriented Programming
Troy Bowlin
Java Practice 1
Ummm No
Java Practice 2
Ummm No
Servion - Java Questionnaire
rohit.benedict
Java Core. Basics
Gadget
Programming Review
Shannon Anderson-Rush
Useful String Methods
Shannon Anderson-Rush
Programming in Java
Faheem Ahmed
Object Oriented Programming Concepts
Cmagapu
Basic Python - Strings
Rebecca Noel