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.io.*; | |
| import java.util.Arrays; | |
| import java.util.Scanner; | |
| public class ListReader { | |
| public static void main(String[] args) { | |
| String csvFile = "/home/andres/Desktop/Tareas de Java/List.csv"; | |
| String line = ""; | |
| BufferedReader br = null; |
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 Andres Rodriguez | |
| * @version 1.0.0 | |
| * @since 16-09-2014 | |
| */ | |
| import java.awt.BorderLayout; | |
| import java.awt.Color; | |
| import java.awt.Dimension; | |
| import java.awt.Font; |
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 Andres Rodriguez | |
| *@version 1.0.0 | |
| *@since 2014-8-22 | |
| */ | |
| import java.util.*; | |
| import java.lang.Math.*; | |
| /** | |
| *@param a | |
| *The value of a that will be introduced by the user to be sent to the other methods to solve the function asked for that changes the height and width of the graph. |
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 Car { | |
| private String brand; | |
| private double pricePerDay; | |
| private int availability; | |
| public Car(String brand, double pricePerDay, int availability) { | |
| this.brand = brand; | |
| this.pricePerDay = pricePerDay; | |
| this.availability = availability; |
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.io.*; | |
| import java.util.*; | |
| public class StudentAppBinary { | |
| public static void main(String[] args) throws IOException { | |
| Scanner input = new Scanner(System.in); | |
| System.out.println("Please introduce the ID: "); | |
| String id = input.nextLine(); | |
| System.out.println("Please introduce the name: "); |
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.io.*; | |
| import java.util.*; | |
| public class ReverseOrderFile { | |
| public static void main(String [] args) throws IOException { | |
| try { | |
| Scanner myFile = new Scanner(new File("reverse.txt")); | |
| while(myFile.hasNextLine()) { | |
| String line = myFile.nextLine(); | |
| String [] words = line.split(" "); |
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.io.*; | |
| import java.util.Scanner; | |
| public class ReadingTextFiles { | |
| public static void main(String[] args) throws IOException { | |
| Scanner input = new Scanner(System.in); | |
| System.out.println("Please introduce which file you wish to read: "); | |
| String fileName = input.next(); |
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 Date { | |
| // Instance Variables | |
| public int day; | |
| public int month; | |
| public int year; | |
| // 1st constructor without parameters. | |
| public Date() { | |
| day = 1; | |
| month = 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
| public class Mummy { | |
| // Instance Variables | |
| Double height; | |
| Double width; | |
| int age; | |
| String name; | |
| public Mummy() { | |
| } |
NewerOlder