import java.util.Scanner; public class EvenOrOdd { public static void main (String []args) { int EvenOrOdd = 0; // set EvenOrOdd to zero Scanner input = new Scanner(System.in); // create a new object scanner … [Read more...] about Have you ever wanted to see if a number really is even or odd?
Java
Have you ever wanted to code exponents in java? now you can!
import java.util.Scanner; public class Exponents { public static void main (String []args) { int base = 0; int exponent = 0; Scanner input = new Scanner(System.in); System.out.println("Please enter a base: "); base = … [Read more...] about Have you ever wanted to code exponents in java? now you can!
What is method overloading in java?
Method overloading, allows you to define multiple methods with the same name allowing you to to define multiple methods with the same name as long as each of the methods has a different signature. So that brings up the question of what is a signature? its the … [Read more...] about What is method overloading in java?
how to get to know shapes in java?
Simple Two step processes Step one: Create a method (work that gets done) Step two: Show of your fabulous work (Call your new method ) … [Read more...] about how to get to know shapes in java?
Revised Java Coin program
import java.util.Scanner; //imports Scanner util public class MinimumCoins { public static void main(String[] args) { Scanner input = new Scanner(System.in); //creates an instance of a class called input // sets inintial … [Read more...] about Revised Java Coin program
Java Minimum Coins Program, How to maximise your change skills?
import java.util.Scanner; //imports Scanner util public class MinimumCoins { public static void main(String[] args) { Scanner input = new Scanner(System.in); //creates an instance of a class called input // sets inintial … [Read more...] about Java Minimum Coins Program, How to maximise your change skills?
Ever wanted to know the logic behind hello world program in java?
package cutnpaste; //package name public class HelloWorld { public static void main(String[] args) { //initalization int age; String Message = "What is Your Name"; String GiveAge = "Enter your age: "; … [Read more...] about Ever wanted to know the logic behind hello world program in java?
Looking deeper into methods!
import java.util.Scanner; public class MaximumFinder { public void findMaximun() { Scanner input = new Scanner (System.in); System.out.print( "Enter three floating poing values sepertated by spaced: "); double number1 = … [Read more...] about Looking deeper into methods!
Do you have five items you want to sell?
import javax.swing.JOptionPane; // To get windows panels public class RetailSales { public static void main (String [] args) { // name of strings String OnlineSales = "Welcome to the online retailer choose" + "choose the items … [Read more...] about Do you have five items you want to sell?