Methods perform operations on fields, methods have the following -Constructors initializes the state -accessor method check the sate of the fields -muatator methods changes the state -utility methods performs Wrap all of this into one class and you have your … [Read more...] about What’s a method in java?
Programming
What is a use case?
Starting point when designing a new system that displays a high level view of a system that communicates functionality. Who and what is the system going to be used for. … [Read more...] about What is a use case?
What are legal variable names in java
Variable names are case-sensitive. A variable's name can be any legal identifier — an unlimited-length letters and digits, beginning with a letter, the dollar sign "$", or the underscore character "". The convention, however, is to always begin your variable names … [Read more...] about What are legal variable names in java
what are key concepts of a computer program?
Formulas Assumptions Start and Stop Input Decisions Looping Variables Output … [Read more...] about what are key concepts of a computer program?
what are objects in java?
objects have the following -attributes/ data -behaviors/ operation anytime a division is done you get a quotient and remainder in java. Addition gives you an int back subtraction gives you a int back multiplication gives you a in back % ---Modulus / … [Read more...] about what are objects in java?
How to do addition in java?
I imported a class with the import java.util.Scanner; it seemed a little awkward to do in java, so used to C. import java.util.Scanner; // class scanner gets imported public class addition { public static void main(String [] args ) { Scanner input = … [Read more...] about How to do addition in java?
Flowcharting
Terminator (Terminal Point, Oval) Terminators show the start and stop points in a process. When used as a Start symbol, terminators depict a trigger action that sets the process flow into motion. Think about this like the complete beginning of a program or stop … [Read more...] about Flowcharting
Creating a multiplication table in java
/** * Multiplication table */ public class tables { public static void main(String[] args) { //print header System.out.println("Multiplication Table:"); for (int k = 0; k <= 10; k++ ) { for(int j = 0; j <= 10; j++) { System.out.print( (j * k ) + "\t" … [Read more...] about Creating a multiplication table in java
how to work with character values?
public class Main { public static void main (String[] args) { char d1 = '1'; char d2 = '2'; char d3 = '3'; system.out.print(c1); system.out.print(c2); system.out.print(c3); } } … [Read more...] about how to work with character values?
general rules of java operators
so what are some of the java operators? i have broken down the values as follows in this list assignment this is the most common operator '=' equal '+' addition '-' subtraction '*' multiplication '/' division '%' modulist … [Read more...] about general rules of java operators