This file contains hidden or 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
| /** | |
| * @author Antonio Peña <pepet1987@gmail.com> | |
| * @version 1.0.0 | |
| * @since 2014-08-22 | |
| */ | |
| import java.util.Scanner; | |
| import java.util.*; | |
| public class mathjavadoc{ |
This file contains hidden or 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
| /** | |
| * @author Antonio Peña <pepet1987@gmail.com> | |
| * @version 1.0.0 | |
| * @since 2014-08-22 | |
| */ | |
| public class Functions{ | |
| private int a; | |
| private int b; | |
| private int c; |
This file contains hidden or 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
| public class Mummy{ | |
| double heightes; | |
| double widthes; | |
| int ages; | |
| String names; | |
| public Mummy(){ | |
| } | |
| public double getHeight(){ |
This file contains hidden or 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
| public class Circle{ | |
| int circlecenter; | |
| MyPoint circcenter; | |
| int circleradius; | |
| double area; | |
| int coordx; | |
| int coordy; | |
| String printstring; | |
| double circarea; |
This file contains hidden or 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
| public static void numbersorting(){ | |
| Scanner input = new Scanner(System.in); | |
| System.out.println("Please type the length of your array"); | |
| int arrlength = input.nextInt(); | |
| int[] array = new int[arrlength]; | |
| System.out.println("Please type the numbers from 0-99"); | |
| for(int i = 0; i < array.length; i++){ |
This file contains hidden or 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
| public static int binarySearch(int numbers[], int key) { | |
| int mid; | |
| int low = 0; | |
| int high = numbers.length - 1; | |
| while (low <= high) { | |
| mid = (low + high) / 2; | |
| if (numbers[mid] > key) { | |
| high = mid - 1; |
This file contains hidden or 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; | |
| import java.util.*; | |
| public class dedup{ | |
| public static void main(String[ ] args){ | |
| Scanner input = new Scanner(System.in); | |
| System.out.println("Enter the number of words that will be analyzed"); |
This file contains hidden or 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; | |
| import java.io.*; | |
| public class Juggling { | |
| public static void main (String [] args) { | |
| Scanner input = new Scanner(System.in); | |
| String[] names = new String[30]; | |
| char asterisk = '*'; | |
| int total = 0; |
This file contains hidden or 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 adjacent { | |
| public static void main(String[] args){ | |
| Scanner input = new Scanner(System.in); | |
| int positions = input.nextInt(); | |
| int myArray[] = new int [positions]; | |
| for (int i=0; i < positions;i++){ |
NewerOlder