FUCKING PROGRAMMING

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall with Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/45

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No study sessions yet.

46 Terms

1
New cards

Object

An instance of a class. The operator new is used to instantiate an object.

2
New cards

Dot (.) Operator

The operator used to access methods or variables within a class or object.

3
New cards

Format Specifier Syntax

The expressions in square brackets are optional.

4
New cards

PrintWriter

A class used to store the output of a program in a file (secondary storage).

5
New cards

Primitive type variables

Directly store data into their memory space.

6
New cards

Reference variables

Store the address of the object containing the data.

7
New cards

Object

An instance of a class. The operator new is used to instantiate an object.

8
New cards

Library

A collection of packages.

9
New cards

Package

Contains several classes.

10
New cards

Class

Contains several methods.

11
New cards

Method

A set of instructions.

12
New cards

String variables

Reference variables that store the address of a string object.

13
New cards

String object

An instance of the class String.

14
New cards

charAt(int index)

Returns the character at the position specified by index.

15
New cards

indexOf(char ch)

Returns the index of the first occurrence of the character specified by ch. Returns -1 if the character does not appear.

16
New cards

indexOf(char ch, int pos)

Returns the index of the first occurrence of the character specified by ch, beginning the search at pos. Returns -1 if not found.

17
New cards

indexOf(String str)

Returns the index of the first occurrence of the string specified by str. Returns -1 if not found.

18
New cards

indexOf(String str, int pos)

Returns the index of the first occurrence of the string specified by str, beginning the search at pos. Returns -1 if not found.

19
New cards

concat(String str)

Returns a string that is the current string concatenated with str.

20
New cards

length()

Returns the length of the string. Counting starts at 1.

21
New cards

replace(char charToBeReplaced, char charReplacedWith)

Returns a string in which every occurrence of charToBeReplaced is replaced with charReplacedWith.

22
New cards

substring(int beginIndex)

Returns a substring beginning at beginIndex until the end of the string.

23
New cards

substring(int beginIndex, int endIndex)

Returns a substring starting at beginIndex up to, but not including, endIndex.

24
New cards

toLowerCase()

Returns a string where all uppercase letters are replaced with lowercase letters.

25
New cards

toUpperCase()

Returns a string where all lowercase letters are replaced with uppercase letters.

26
New cards

formatString

A string specifying the format of the output.

27
New cards

argumentList

A list of constant values, variables, or expressions separated by commas.

28
New cards

Format Specifier Syntax

The syntax is: %[argument_index\$][flags][width][.precision]conversion. The expressions in square brackets are optional.

29
New cards

argument_index

A decimal integer indicating the position of the argument in the argument list.

30
New cards

flags

A set of characters that modify the output format.

31
New cards

width

A decimal integer indicating the minimum number of characters to be written to the output.

32
New cards

precision

A decimal integer usually used to restrict the number of characters or decimal places.

33
New cards

conversion

A character indicating how the argument should be formatted.

34
New cards

Numeric Strings

A string consisting of only integers or decimal numbers.

35
New cards

Wrapper Classes

Classes such as Integer, Float, and Double designed to convert a numeric string into a number.

36
New cards

parseInt

A method of the class Integer that converts a numeric integer string into a value of the type int.

37
New cards

parseFloat

A method of the class Float used to convert a numeric decimal string into a value of the type float.

38
New cards

parseDouble

A method of the class Double used to convert a numeric decimal string into a value of the type double.

39
New cards

JOptionPane

A class contained in the package javax.swing used for graphical input and output.

40
New cards

showInputDialog

A method in JOptionPane used to display a dialog box that captures user input as a string.

41
New cards

showMessageDialog

A method in JOptionPane used to display information in a dialog box.

42
New cards

System.exit(0)

The command used to terminate a program that utilizes JOptionPane.

43
New cards

File

An area in secondary storage used to hold information.

44
New cards

PrintWriter

A class used to store the output of a program in a file.

45
New cards

throws clause

A clause in a method heading where the method either handles an exception or throws it for the calling environment to handle.

46
New cards

FileNotFoundException

An exception that occurs if an input file does not exist or an output file cannot be created or accessed.