for this program i get an input from a file then i massage the data and write back out to a new file. IT worked good for having a file with data and changing it to represent something that is more usable. package teamleader; public class TeamLeader { public … [Read more...] about How to readfiles in java?
Java
Creating a new friend, friend list(How to) In java
A small program that lets you 1) Add a Friend 2) Remove a Friend 3) Display all Friends 4) Exit I used some new cool things in java from creating custom classes to understanding encapsulation, data hiding, organizing parts of the program. have instances of … [Read more...] about Creating a new friend, friend list(How to) In java
How to work with pre defined array?
The only difference in this peace of code is that instead of an array that has a fixed size, its an array that is pre defined size. What i mean to say in simple terms is that I have created 10 shelf's to store my beautiful numbers, so shelf 0 stores 2 and shelf one … [Read more...] about How to work with pre defined array?
How to create arrays in java?
When working with arrays you want to think about them like a shelf you can take things in and out of them and see what they store. Arrays can be declared by different types from int to strings although int arrays get an initial value of zero so in this example i … [Read more...] about How to create arrays in java?
Working with an enhanced for loop?
an enhanced for loop CAN NOT change the values of a standard for loop can do, so the new and enhanced for loop is great for working with arrays that need to be read in or access for maybe lets say a list, and don't forget to pass an array to a whole … [Read more...] about Working with an enhanced for loop?
How to work with a list of arrays?
A list of an array is created when you explicit know the size of the array and the values that would go inside the array for example int [] iList = {5,10,15,20,25}; The first part of this array list declares the type of array list in the example it was an int, … [Read more...] about How to work with a list of arrays?
How to work with arrays in java?
Arrays are setup with like a coulomb or row, they can hold different type of value of values. So how do you tell java to create an array? the syntax is simple but before that what type of array would you like to create? what is going to be storing? (integers, … [Read more...] about How to work with arrays in java?
How to find the GCD in java?
package gcd; import java.util.Scanner; public class Gcd { public static void main (String []args) { int Number1; int Number2; Scanner input = new Scanner(System.in); System.out.println("Welcome … [Read more...] about How to find the GCD in java?
Idea conditionals and recursion? explained to a 5 year old
Simplification: having a gate or door, it can only open if you have the right key, the keys are == != <= >= < >, once the gate open you can get your work done. Having the gate open gives you a really neat power of calling the gate on its self? what your … [Read more...] about Idea conditionals and recursion? explained to a 5 year old
Have you ever wanted to convert Fahrenheit to Celsius in java? Now you can!
package temperature.conversions; import java.util.Scanner; public class TemperatureConversions { public static void main(String[] args) { double Selection; Scanner input = new Scanner(System.in); // create a … [Read more...] about Have you ever wanted to convert Fahrenheit to Celsius in java? Now you can!