| and is it dangerous?If I use twitter on my phone by text message can other people see my phone number? mp3 Why is this code uncompilable? The only error I get is in the main function, on the calcArea line. What should I do? package area3; import java.util.Scanner; public class Area3 public static void calcArea(int whatTheywant, double side1 , double side2, double base, double height, double radius) // conditionals for each type of calculation Scanner reader = new Scanner(System.in); System.out.println ("Type 1 to calculate Triangle area, 2 for Circle, 3 for Rectangle, or 0 for none of them"); whatTheywant = reader.nextInt(); reader.nextLine(); if (whatTheywant == 1) areaTriangle(base, height); if (whatTheywant == 2) areaCircle(radius); if (whatTheywant == 3) areaRectangle(side1, side2); if (whatTheywant == 0) return; public static void main(String<> args) // basic main function, just using calcArea calcArea(); public static void areaTriangle (double base, double height) // getting input from user regarding height and base Scanner reader2 = new Scanner (System.in); System.out.println ("Enter the base of the triangle."); base = reader2.nextDouble(); System.out.println ("Enter the height of the triangle."); height = reader2.nextDouble(); reader2.nextLine(); double areaTri = base*height/2; // calculating area of triangle System.out.println ("The area of the triangle is" + areaTri + "."); // printing area public static void areaCircle (double radius) //getting input from user regarding radius Scanner reader3 = new Scanner (System.in); System.out.println ("Enter the radius of the circle."); radius = reader3.nextDouble(); reader3.nextLine(); //calculating and printing area of circle double areaCir = 2.0*Math.PI*radius; System.out.println ("The area of the circle is " + areaCir + "."); public static void areaRectangle(double side1, double side2) //getting user input regarding sides of rectangle Scanner reader4 = new Scanner (System.in); System.out.println ("Enter the length of the first side of the rectangle."); side1 = reader4.nextDouble(); System.out.println ("Enter the length of the other side of the rectangle."); side2 = reader4.nextDouble(); reader4.nextLine(); //calculating and printing area of rectangle double areaRec = side1*side2; System.out.println ("The area of the rectangle is" + areaRec + "."); My realplayer downloader isnt working anymore so are their any other softwares similar to realplayer so i can download videos?mp3I have a program that interpolates and gets functions for all given points. However, i want to only plot my function for two points, then the next two plots...etc. while my window range shows all points. Anyone know how to restrict what is plotted?I misunderstood the birth date on YouTube account creation and when I entered 27. March 2011. (because I was creating an account for a new political party and wanted to enter a date when the party was founded where the birth date is), the YouTube account blocked the corresponding GMail account, and now the party cannot access the important e-mail. The block was placed because YouTube said there cannot be a YouTube/GMail user younger than 13 years. I already went to a page where I should sent them the government document to verify the proper age (but it's a party, actually) and already sent them a few images proving it's a party and not a person. But is there an e-mail where I can send them an urgent mail about this? Thanks.
|