public class Data {
public static void main(String[] args) {
int age = 24;
double salary = 250000;
int iq = 145;
System.out.println("Age: " + age);
System.out.println("Salary: " + salary);
System.out.println("IQ: " + iq);
}
}

Build a Java Class to print out your age, your salary (exaggerate), and your IQ (be...
1. Build a Java Class that prints out your name. Print your first name on the first line of output, and print your last name on the second line of output. Use variables to hold your firstName and lastName before printing them. All your code should go in the main() method. Call your class “Names.java”. lab 2 2371
You are to write a Java Class using Generics. This class is to be a Double Linked List container for holding other objects which are comparable. The Class should support the following features: Print the elements of the collection in order (ascending). Insert an item. Remove an item. Empty the collection. Find the index of an element, using a binary recursive search. The program should include a driver class (Main) that provides a command line input/output. This driver class should:...
Your job is to do the following: build a Monster class as your base class, along with two derived classes, Undead and Animal. All Monsters have names and origins. Undead monsters have the year their heart stopped beating. Animals have a species. Your Undead class should be extended to create a Zombie class and a Vampire class. Your Animal Class will extend to include a Werewolf class. Zombies have a favorite weapon, Vampires have a number of humans they have...
Please write this in java
Write one static method to print each character in the
output. There should be methods to print: H, E, L, O,
(comma), W, R, D and (exclamation point). The method
to print H should be called printH() and the method to
print the comma should be called printComma(). Make
sure to separate characters with a new line in the method
(except the comma) as shown on right. Write a method called
printHelloWorld() to call the...
java This lab is intended to give you practice creating a class with a constructor method, accessor methods, mutator methods, equals method , toString method and a equals method. In this lab you need to create two separate classes, one Student class and other Lab10 class. You need to define your instance variables, accessor methods, mutator methods, constructor, toString method and equals method in Student class. You need to create objects in Lab10 class which will have your main method...
CIST 2371 Introduction to Java Unit 04 Lab Due Date: ________ Create a folder called Unit04 and put all your source files in this folder. You will create a UML diagram and two Java class files and that implements the classes in the UML diagram. Diagram Create a UML diagram that shows an Account class and an AccountTester class. The Account class holds the following data as Strings: account Number, type of account, card number and expire date. Include getter...
Build a java program that has Student class, use arrays of objects {name, age, gpa} to saves 3 students records. Use printable interface with abstract print method. Student class inherits from an abstract Person class that has name, age as attributes. It also has the following 2 methods: abstract setAge and concrete setGPA. Below is the hierarchy and a sample run (using netbeans): Hierarchy: Printable Interface print(Object ( ) ): object ] Abstract Person Class Name: String Age: int Abstract...
in Java and make sure the extra credit is in the program
aswell
Submission Instructions Submit by midnight on the due date and include your submission (a zip file) as an attachment. Assignment Design a class named Animal. An Animal object has the following data members: name (String), age (integer), amount-food-eaten-per-day (integer, representing ounces) and a preferred food (String). Create a toStringO method in the Animal class. Create a no-arg constructor method that sets default values to the 4 data...
In java Build a QueueInt class for integers that is compatible with the driver code below. The QueueInt should operate in a FIFO (first in, first out) fashion and implement the variables and methods also listed below: Data Members: Declare and initialize, as needed, the data item(s) you will need to manage a queue of integers. You may only use arrays and primitives for your instance and/or static variables (I,e You can’t use Java defined Queue / Stack / List...
Java Code Help! Code this: Calculate statistics. Write a class called Statistics that can calculate a number of properties about an array of doubles. There should be separate static methods to calculate the min, the max, the mean, the median, the standard deviation (make sure to make use of your mean method to implement this), and the mode. For the mode, you can assume that the data set is not multimodal. This class should not have a main method. Write...