Set: Compsci Syntaxes 1 & 2

Familiarize

Learn

Test

Play Scatter

Play Space Race

Combine with other sets Login to add to Favorites
Print: Term List | Flashcards Editing not allowed
Export Deleting not allowed

Share these flash cards

With group: None
HTML link to set: Tiny link:
Share on Facebook Share on MySpace

All 13 terms

TermDefinition
put before the class statement when user input is necessary in a programimport java.util.Scanner;
begins an end-of-line-commentforward slash ( // )
Every statement ends with asemi-colon ( ; )
Java applications begin execution at method mainpublic static void main(String args[ ]);
prints a single lineSystem.out.print(" ");
prints a single line that is also "entered down" a lineSystem.out.println(" ");
The arithmetic operators +, /, %, * and – go in order ofoperations: 1. * 2. / 3. % 4. + 5. -
prints a formatted lineSystem.out.printf(" ");
create Scanner to obtain input from command windowScanner input = new Scanner(System.in);
to create a variable upon the opening of the method (with type int):int num1;
read first number from usernum1 = input.nextInt( );
Store first integer entered into smallestsmallest = num1;
//make smallest the smallest of theseif(number2 < smallest) smallest = number2;
Become a Friend of Quizlet!

Set Information

Terms 13
Creator bananafoot
Created February 12, 2009
Groups None
Subjects None
Access Anyone
Edit Creator Only
Get rid of ads on Quizlet

Description

So we don't forget how to write them and our programs will be able to compile.

Pop out

Discuss

No Messages
Last Message: never

You must be logged in to discuss this set.

Top Users

  1. bananafoot - 18 scores

Most Missed Words

  1. put before the class statement when user input is necessary in a program import java.util.Scanner; - 1 miss
  2. to create a variable upon the opening of the method (with type int): int num1; - 1 miss
  3. //make smallest the smallest of these if(number2 < smallest) smallest = number2; - 1 miss