Skip to content

Instantly share code, notes, and snippets.

View vaughan0's full-sized avatar

Vaughan Newton vaughan0

  • SnapBill
  • Cape Town
View GitHub Profile
import java.util.Scanner;
public class FirstFour {
public static void main(String [] args)
{
String word;
System.out.println("Enter a word here");
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author calbrecht
*/
public class blockCounter {
bar (int *array, int offset, int size)
{
__label__ failure;
int access (int *array, int index)
{
if (index > size)
goto failure;
return array[index + offset];
}
int i;
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);
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();
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() ;