I understand that this question was asked multiple times on this site but the answers given don't seem to help me. I am very new to Java.
import javax.swing.JOptionPane;
public class Lab10 {
String species, color, injuries, name, wiput, liput, locationFound, oiput;
char gender;
float weight, length;
boolean hasShots, needsShots;
int tagNumber, cageNumber, outcome;
public static void main(String[] args) {
strayAnimal(species, color, weight, length, injuries, locationFound, name);
}
public static void strayAnimal(String species, String color, float weight, float length, String injuries, String locationFound, String name) {
species = JOptionPane.showInputDialog("Please enter the species of the animal: ");
color = JOptionPane.showInputDialog("Please enter the color of the animal: ");
wiput = JOptionPane.showInputDialog("Please enter the weight of the animal");
weight = Float.parseFloat(wiput);
liput = JOptionPane.showInputDialog("Please enter the lenght of the animal: ");
length = Float.parseFloat(liput);
locationFound = JOptionPane.showInputDialog("Please enter the location the animal was found(City, County, State): ");
injuries = JOptionPane.showInputDialog("Please enter the injuries the animal has seperated with commas: ");
}
//public static char strayAnimal() {
//}
public static void setOutcome(int outcome) {
oiput = JOptionPane.showInputDialog("Please enter a '0' if the animal has or will be terminated or a '1' if the animal has been saved: ");
outcome = Integer.parseInt(oiput);
}
public void giveShots() {
boolean giveShots;
if (giveShots = true) {
}
}
public static void needShots() {
boolean needShots;
}
}