This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class FirstFour { | |
public static void main(String [] args) | |
{ | |
String word; | |
System.out.println("Enter a word here"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
/** | |
* | |
* @author calbrecht | |
*/ | |
public class blockCounter { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class BankAccount { | |
public static void main(String[] args){ | |
Scanner in = new Scanner(System.in); | |
BankAccount account = new BankAccount(1000); | |
account.deposit(500); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class exercise3 { | |
public static void main(String[] args) { | |
Scanner in = new Scanner(System.in); | |
System.out.println("please enter a natural number."); | |
int naturalNumber = in.nextInt(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class primeNumbersII { | |
public static void main(String[] args) { | |
Scanner in = new Scanner(System.in); | |
System.out.println("Please enter a number below") ; | |
int integer = in.nextInt() ; |