I AM NEW TO JAVA...PLEASE HELP ME

Dear friends,
I am very much interested in learning Java. But, I am Zero in Java. I don't know where to start, what to do..etc., I just downloaded Java Plug-In for Windows XP. Other than that I don't have anything.
Please help me which is the best book to start learning Java. How to work? What to do? How to write simple programs in Java? Where can I download sample programs? How to execute them?
All your replies would be greatly appreciated!!!
Thanks,
Rajan

First of all, conggratulations for deciding to learn Java. I am myself a University student studying Java for the first time too.
What you need to study for Java are: Java Development Kit (either version 1.3.x or the newer 1.4; either would work just fine), a text editor of your choosing (if your on Windows platform, you already have NotePad), Java Runtime Environment ( which is already available bundled with Java Development Kit when you download it), and most important of all, a will to study it.
As I found out for myself, it can be daunting at first, but if you keep at it for a while, you'll get used to it. Don't worry to make mistakes here and there, we're here to learn, and if you do happen to make one, that's the best way to learn it.
As for books, the ones I have at my arsenal for learning it are:
Java Software Solutions
Beginning Java 2 (WROX)
The Java Tutorial, 3rd Edition
Using Java 2, Standard Edition
For the questions you posted on how it works, one of the books that I have, The Java Tutorial from Sun Microsystem, explains everything in detail not just 1 platform but for many.
Another note, it's good if you can also look for an IDE (Integrated Development Environment) to work on your Java programs. If you don't want to buy one (I understand that most are very expensive), try getting Forte for Java Community Edition from Sun's download website.
Good luck on studying and I hope what I have divulged to you would be of some help. Bye.

Similar Messages

  • Very new to java please help

    i'm very new to java and i'm getting an error in my application. i took 4 applications that compiled and worked separatly and i tried to combine them into one application. i'm getting the error: unreported exception java.io.IOException; must be caught or declared to be thrown, in lines 73,78,83,88,120,146,149,152,155 in the and it points at the keyboard.readLine() but everything i've tried just gives me more errors. please help anything and everything will be greatly appreciated. here it is, sorry about format i dunno how to straighten it in here:
    // ^ ^
    //               (0)(0) A Happy Piggy Application
    // Problems: 2.6,2.8,2.9,2.12 (oo)
    // An application finds the total number of hours, minutes, & seconds, finds the distance
    // between two points, finds the volume and surface area of a sphere, and adds up the change
    // in a jar. First, the total hours, minutes, and seconds problem.
    import java.io.*;
    import java.text.DecimalFormat;
    import java.text.NumberFormat;
    public class twoptsix
         static BufferedReader keyboard = new BufferedReader(new InputStreamReader(System.in));
         static PrintWriter screen = new PrintWriter(System.out, true);
         public static void main (String[] args) throws IOException
              double hoursa, minutesa, secondsa;
              String hours;
              System.out.print ("Please enter a number of hours: ");
    hours = keyboard.readLine();
    hoursa = Double.parseDouble(hours); //asks programmer friendly user to enter hours
    String minutes;
    System.out.print ("Please enter a number of minutes: ");
    minutes=keyboard.readLine();
    minutesa = Double.parseDouble(minutes); //asks programmer friendly user to enter minutes
    String seconds;
    System.out.print ("Pretty please enter a number of seconds: ");
    seconds = keyboard.readLine();
    secondsa = Double.parseDouble(seconds); //asks programmer friendly user to enter seconds
    double allseconds;
    allseconds = (hoursa * 3600) + (minutesa * 60) + secondsa; //adds up all the seconds of the time entered
    System.out.println ("You have: " + hours + " hours..."); //displays hours
    System.out.println ("" + minutes + " minutes..."); //displays minutes
    System.out.println ("and " + seconds + " seconds..."); //displays seconds
              System.out.println ("to get whatever you need to done!"); //witty attempt at humor
    System.out.println ("The total amount of seconds is: " + allseconds + " seconds."); //displays total seconds
    // An application that finds the distance between two points when the points
    // are given by the user.
              double x1, x2, y1, y2, total, distance;
              String xa;
              System.out.print ("Please enter the 'x' coordinate of first point: ");
              xa = keyboard.readLine();
              x1 = Double.parseDouble(xa); //asks programmer friendly user to enter first x value
              String ya;
              System.out.print ("...also need the 'y' coordinate of first point: ");
              ya = keyboard.readLine();
              y1= Double.parseDouble(ya); //asks programmer friendly user to enter first y value
              String xb;
              System.out.print ("...and the 'x' coordinate of the second point: ");
              xb = keyboard.readLine();
              x2 = Double.parseDouble(xb); //asks programmer friendly user to enter second x value
              String yb;
              System.out.print ("...don't forget the 'y' coordinate of the second point: ");
              yb = keyboard.readLine();
              y2 = Double.parseDouble(yb); //asks programmer friendly user to enter second y value
              total = Math.pow(x2 - x1, 2.0) + Math.pow(y2 - y1, 2.0); //squares the differences of values
              distance = Math.sqrt(total); //finds the square root of the sum of the differences of the values
              System.out.print ("E=mc^2...oh and,");
              System.out.print ("the distance between point (" + xa +"," + ya +") and point("+
              xb + "," + yb + ") is : " + distance);
    // An application that takes the radius of a sphere and finds and prints
    // the spheres volume and surface area.
              double radius,volume,area;
              String rad;
              System.out.print("Please enter the radius of a sphere: ");
              rad = keyboard.readLine();
              radius = Double.parseDouble(rad); //asks programmer friendly user to enter the radius of a sphere
    DecimalFormat fmt = new DecimalFormat ("0.####");
              volume = ((4 * Math.PI * Math.pow(radius,3.0)) / 3) ;
              System.out.println (" The sphere has a volume of:" + fmt.format(volume)); //finds and displays volume
              area = ( 4 * Math.PI * Math.pow(radius, 2.0)) ;
              System.out.print (" The Surface Area of the sphere is: " + fmt.format(area)); //finds and displays surface area
    // An application that finds the total, in dollars and cents, of a number of quarters,
    // nickels, dimes, and pennies in your piggy bank.
              int pennies, nickels, dimes, quarters;
              double money1;
              screen.println("Empty your piggy bank and count the change, how many quarters ya have?: ");
              int q = (new Integer(keyboard.readLine())).intValue();//asks programmer friendly user to enter a number of quarters
              screen.println("How many dimes?: ");
              int d = (new Integer(keyboard.readLine())).intValue();//asks programmer friendly user to enter a number of dimes
              screen.println("How many nickels?: ");
              int n = (new Integer(keyboard.readLine())).intValue();//asks programmer friendly user to enter a number of nickels
              screen.println("How many pennies?: ");
              int p = (new Integer(keyboard.readLine())).intValue();//asks programmer friendly user to enter a number of pennies
              NumberFormat money = NumberFormat.getCurrencyInstance();
              money1 = (.25 * q) + (.1 * d) + (.05 * n) + (.01 * p);
              screen.println("You're rich! Total, you've got: " + money.format(money1));//finds and displays total money

    Ok here is the working code as one long function:
    // ^ ^
    // (0)(0) A Happy Piggy Application
    // Problems: 2.6,2.8,2.9,2.12 (oo)
    // An application finds the total number of hours, minutes, & seconds, finds the distance
    // between two points, finds the volume and surface area of a sphere, and adds up the change
    // in a jar. First, the total hours, minutes, and seconds problem.
    import java.io.*;
    import java.text.DecimalFormat;
    import java.text.NumberFormat;
    public class twoptsix
        static BufferedReader keyboard = new BufferedReader(new InputStreamReader(System.in));
        static PrintWriter screen = new PrintWriter(System.out, true);
        public static void main (String[] args) throws IOException
    double hoursa, minutesa, secondsa;
    String hours;
    System.out.print ("Please enter a number of hours: ");
    hours = keyboard.readLine();
    hoursa = Double.parseDouble(hours); //asks programmer friendly user to enter hours
    String minutes;
    System.out.print ("Please enter a number of minutes: ");
    minutes=keyboard.readLine();
    minutesa = Double.parseDouble(minutes); //asks programmer friendly user to enter minutes
    String seconds;
    System.out.print ("Pretty please enter a number of seconds: ");
    seconds = keyboard.readLine();
    secondsa = Double.parseDouble(seconds); //asks programmer friendly user to enter seconds
    double allseconds;
    allseconds = (hoursa * 3600) + (minutesa * 60) + secondsa; //adds up all the seconds of the time entered
    System.out.println ("You have: " + hours + " hours..."); //displays hours
    System.out.println ("" + minutes + " minutes..."); //displays minutes
    System.out.println ("and " + seconds + " seconds..."); //displays seconds
    System.out.println ("to get whatever you need to done!"); //witty attempt at humor
    System.out.println ("The total amount of seconds is: " + allseconds + " seconds."); //displays total seconds
    // }  <----- MAIN FUNCTION USED TO END HERE!!!
    //but we want to keep going so remove the bracket!
    // An application that finds the distance between two points when the points
    // are given by the user.
    // {  <-- other function used to start here, but now it continues
    double x1, x2, y1, y2, total, distance;
    String xa;
    System.out.print ("Please enter the 'x' coordinate of first point: ");
    xa = keyboard.readLine();
    x1 = Double.parseDouble(xa); //asks programmer friendly user to enter first x value
    String ya;
    System.out.print ("...also need the 'y' coordinate of first point: ");
    ya = keyboard.readLine();
    y1= Double.parseDouble(ya); //asks programmer friendly user to enter first y value
    String xb;
    System.out.print ("...and the 'x' coordinate of the second point: ");
    xb = keyboard.readLine();
    x2 = Double.parseDouble(xb); //asks programmer friendly user to enter second x value
    String yb;
    System.out.print ("...don't forget the 'y' coordinate of the second point: ");
    yb = keyboard.readLine();
    y2 = Double.parseDouble(yb); //asks programmer friendly user to enter second y value
    total = Math.pow(x2 - x1, 2.0) + Math.pow(y2 - y1, 2.0); //squares the differences of values
    distance = Math.sqrt(total); //finds the square root of the sum of the differences of the values
    System.out.print ("E=mc^2...oh and,");
    System.out.print ("the distance between point (" + xa +"," + ya +") and point("+
         xb + "," + yb + ") is : " + distance);
    //second function used to end here...
    //} <--- COMMENT OUT BRACKET SO WE CONTINUE
    // An application that takes the radius of a sphere and finds and prints
    // the spheres volume and surface area.
    //{ <--- ANOTHER ONE TO COMMENT OUT
    double radius,volume,area;
    String rad;
    System.out.print("Please enter the radius of a sphere: ");
    rad = keyboard.readLine();
    radius = Double.parseDouble(rad); //asks programmer friendly user to enter the radius of a sphere
    DecimalFormat fmt = new DecimalFormat ("0.####");
    volume = ((4 * Math.PI * Math.pow(radius,3.0)) / 3) ;
    System.out.println (" The sphere has a volume of:" + fmt.format(volume)); //finds and displays volume
    area = ( 4 * Math.PI * Math.pow(radius, 2.0)) ;
    System.out.print (" The Surface Area of the sphere is: " + fmt.format(area)); //finds and displays surface area
    // } <----- COMMENTED OUT FOR THE SAME REASON
    // An application that finds the total, in dollars and cents, of a number of quarters,
    // nickels, dimes, and pennies in your piggy bank.
    //{ <----AND ANOTHER
    int pennies, nickels, dimes, quarters;
    double money1;
    screen.println("Empty your piggy bank and count the change, how many quarters ya have?: ");
    int q = (new Integer(keyboard.readLine())).intValue();//asks programmer friendly user to enter a number of quarters
    screen.println("How many dimes?: ");
    int d = (new Integer(keyboard.readLine())).intValue();//asks programmer friendly user to enter a number of dimes
    screen.println("How many nickels?: ");
    int n = (new Integer(keyboard.readLine())).intValue();//asks programmer friendly user to enter a number of nickels
    screen.println("How many pennies?: ");
    int p = (new Integer(keyboard.readLine())).intValue();//asks programmer friendly user to enter a number of pennies
    NumberFormat money = NumberFormat.getCurrencyInstance();
    money1 = (.25 * q) + (.1 * d) + (.05 * n) + (.01 * p);
    screen.println("You're rich! Total, you've got: " + money.format(money1));//finds and displays total money
    }P.S. To make the code formatted better put [ code ] before and [ /code ] after. It's not perfect, but a little better...

  • M new to this forum + new to java please help me with file handling program

    hi i want to make a file handling program where in i want to input a text file say f1 whose style is mentioned as below
    aaa...bcd
    aaabbc
    acdce
    a..dd
    abbcd
    now i want to write d out put of file f1 to file f2 but only those string entries widout any ... in them how to do that :-(( please help :((

    import java.io.*;
    import java.lang.*;
    class javcsse{
             void javsce (){
              BufferedReader in;
            PrintWriter out;
            String line;
            try
                in = new BufferedReader(new FileReader("e:\\cntcs\\n7.txt"));
                out = new PrintWriter("e:\\cntcs\\n8.txt");
               line = in.readLine();
               while(line != null)
                     if(line.contains("...") && line.contains("....")){
                         break ;                
                         else{
                               if(line.contains("cc"))
                              System.out.println(line+"\n");
                                      out.println(line);
                    line = in.readLine();
                in.close();
                out.close();
            } catch (Exception ex)
                System.err.println(ex.getMessage());
      public class javcse{
        public static void main(String[] args) {
            new javcsse();
    }hey i wrote this code yet could u tell y is it still not working :((

  • I am new to java please help!!

    please help ive got a method thta i wanto to use it in another class, but it does not work.
    //prueba.java
    import java.io.*;
    public class prueba
    public int numero3;
    public int suma(int numero1,int numero2)
    int numero3=numero1+numero2;
    return numero3;
    //prueba1.java
    import javax.servlet.*;
    import java.io.*;
    import javax.servlet.http.*;
    import prueba;
    public class prueba1 extends HttpServlet
    public void doGet(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException
    PrintWriter out = res.getWriter();
    int num1=1;
    int num2=1;
    prueba uno=new prueba();
    out.println(uno.suma(2,3));
    when i ty to complie this file it throws me thie errors:
    C:\resin-2.0.b2\doc\content-manager\admin\web-inf\classes\prueba1.java:4: cannot resolve symbol
    symbol: class prueba
    import prueba;
    ^
    C:\resin-2.0.b2\doc\content-manager\admin\web-inf\classes\prueba1.java:15: cannot resolve symbol
    symbol : class prueba
    location: class prueba1
    prueba uno=new prueba();
    ^
    C:\resin-2.0.b2\doc\content-manager\admin\web-inf\classes\prueba1.java:15: cannot resolve symbol
    symbol : class prueba
    location: class prueba1
    prueba uno=new prueba();
    ^
    3 errors
    Tool completed with exit code 1
    both , prueba1.java and prueba.java are in the same folder.

    C:\resin-2.0.b2\doc\content-manager\admin\web-inf\classes\prueba1.java:15: cannot resolve symbol
    symbol : class prueba
    location: class prueba1
         prueba uno=new prueba();
    ^
    C:\resin-2.0.b2\doc\content-manager\admin\web-inf\classes\prueba1.java:15: cannot resolve symbol
    symbol : class prueba
    location: class prueba1
         prueba uno=new prueba();
    ^
    2 errors

  • Totally New in Java - Please help!!

    Hi Dear all,
    l am totally new in Java, and l facing one problem,and really hope can get some help from yours,please!
    l need to write this program:
    The program should do the following:
    1. Input two fields: action (action: add / delete), and account number (any
    digit or character)
    2. if the action is "add" then the program adds one text line to a text
    file.
    "New account is <account number>"
    3. create the text file if it is not already exist (in c:\)
    4. When program runs again with new input values, a new line will be
    appended to the same file.
    5. if the action is "delete" then the program finds the record and removes
    the text line from the file.
    My problem is :
    l just know that l need to create the user interface first,but l don't know how to go on??
    Would you please show me some step how to solve these problem?
    Many many thanks!!
    BaoBao

    I don't know about Swing. I never use it.
    The stuff to create and manipulate files is in the java.io package.
    You'll probably want to use java.io.FileReader and java.io.FileWriter.
    Note that FileWriter has a constructor that lets you append and not overwrite.
    I'll start you off with a test.
    public class AccountListAddTest() {
      public static void main(String[] argv) {
        AccountList accts = new AccountList();
        accts.add("abcdefg12345"); // arg is a hypothetical account number
    }Write an AccountList class that'll work if you compile and run this test. After you run this test for the first time, the file should contain the string
    New account is abcdefg12345.
    This test assumes that the filename is hardcoded into the AccountList class. To keep it simple, make the add method create a new appending FileWriter each time, write, then close the writer.

  • New to Java, Please help

    Hi, I was trying to play a game and came up with this java error (below), I uninstalled and reinstalled still no fix. I think i need a new class?, If anyone can explain the potential problem to me and help me fix it, that would be much appreciated. I'm a complete NEWB when it comes to java, I'm not even sure how to edit that code. so please remember to explain in the newbiest of newby answers. I am proficient with features of a computer just not java.
    Java Plug-in 1.6.0_24
    Using JRE version 1.6.0_24-b07 Java HotSpot(TM) Client VM
    User home directory = C:\Users\Ethan
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    load: class loader.class not found.
    java.lang.ClassNotFoundException: loader.class
    at sun.plugin2.applet.Applet2ClassLoader.fi… Source)
    at sun.plugin2.applet.Plugin2ClassLoader.lo… Source)
    at sun.plugin2.applet.Plugin2ClassLoader.lo… Source)
    at sun.plugin2.applet.Plugin2ClassLoader.lo… Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.lo… Source)
    at sun.plugin2.applet.Plugin2Manager.create… Source)
    at sun.plugin2.applet.Plugin2Manager$Applet… Source)
    at java.lang.Thread.run(Unknown Source)
    Exception: java.lang.ClassNotFoundException: loader.class

    845681 wrote:
    Hi, I was trying to play a game and came up with this java error (below), I uninstalled and reinstalled still no fix. I think i need a new class?, If anyone can explain the potential problem to me and help me fix it, that would be much appreciated. I'm a complete NEWB when it comes to java, I'm not even sure how to edit that code. so please remember to explain in the newbiest of newby answers. I am proficient with features of a computer just not java.If you want to learn how to program java, which is not the same as playing that particular game then you can start with the following link.
    http://download.oracle.com/javase/tutorial/getStarted/index.html

  • New to java, please help me :(

    hi, i have to complete a BMI calculator with arrays and switch, i need it so that if input a / b is selected it will calculate metric / imperial (i know that both calcs are the same, its just a placeholder for the time being). once thats selected users are asked to input name, age, height and weight, then looped again for another user to input into the array.
    once completed the name and age along with the BMI calculation for all the users that have inputted are displayed
    the problem is, the calculations are wrong, where it should be outputting a BMI of between 20-23ish im getting 0.3
    i think i had this problem when i done the switch example previously, but to fix that i just lumped all the code (inputs and calcs) into each case. in this method im guessing that would be an incorrect approach ?
    btw, sorry for my layout, ive been debugging for ages now and havnt had time to clean it up :/
    thank you in advance and heres my code:-
    package bmicalculationex;
    import javax.swing.*;
    public class Main {
    public static void main(String[] args) {
    String output;
    double Hfeet=0, Wstone=0, Hinches=0, Wlbs=0;
    String Hfeetstr, Wstonestr, Hinchesstr, Wlbsstr, age;
    String name;
    double bmiweight=0, bmiheight=0, BMI=0;
    Item[] myItemArray = new Item[2];
    for(int i = 0;i<2;i++){
    myItemArray[i] = new Item();
    String input = JOptionPane.showInputDialog(
    "Welcome to Chunks BMI calculator\n"+
    "a) Metric.\n"+
    "b) Imperial\n"+
    "q) Quit\n"+
    "\nPlease enter letter code" );
    char code = input.charAt(0);
    switch(code){
    case 'a':
    output= "Imperial.";
    Wlbs = Wlbs * 0.45359237;
    Hinches = Hinches * 0.0254;
    Hfeet = Hfeet * 0.3048;
    Wstone = Wstone * 6.35029318;
    break;
    case 'b': output= "Metric.";
    Wlbs = Wlbs * 0.45359237;
    Hinches = Hinches * 0.0254;
    Hfeet = Hfeet * 0.3048;
    Wstone = Wstone * 6.35029318;
    break;
    default: output= "Error.";
    JOptionPane.showMessageDialog(null,"Invalid Selection.\n"+ "Please try again.");
    JOptionPane.showMessageDialog(null, "You have selected :- " + output + "\n\n" +" Thank you.");
    //User In-
    for(int c=0;c<2;c++){
    name = JOptionPane.showInputDialog("enter your name");
    age = JOptionPane.showInputDialog("enter your age");
    Hfeetstr = JOptionPane.showInputDialog("enter your Height");
    Hinchesstr = JOptionPane.showInputDialog("enter the remainder");
    Wstonestr = JOptionPane.showInputDialog("enter your weight");
    Wlbsstr = JOptionPane.showInputDialog("enter the remainder");
    Hfeet = Float.parseFloat(Hfeetstr);
    Wstone = Float.parseFloat(Wstonestr);
    Hinches = Float.parseFloat(Hinchesstr);
    Wlbs = Float.parseFloat(Wlbsstr);
    bmiweight = Wstone + Wlbs;
    bmiheight = Hinches + Hfeet;
    BMI = bmiweight / (bmiheight*bmiheight);
    myItemArray[c].setname(name);
    myItemArray[c].setyear(age);
    myItemArray[c].setBMII(BMI);
    String message = "";
    for(int n=0;n<2;n++){
    message = message + "Name :- " + myItemArray[n].getname() + " " + "Age :- " + " " + myItemArray[n].getaged() + "BMI :- " + " " +myItemArray[n].getBMI() +"\n";
    JOptionPane.showMessageDialog(null, message);
    }//end of main method
    }//end of main class
    class Item{
    private String namea;
    private String agea;
    private double BMIa;
    public Item(){
    agea = "";
    BMIa = 0;
    namea = "";
    public Item(String nameb, String ageb, double BMIb){
    namea = nameb;
    agea = ageb;
    BMIa = BMIb;
    public String getname(){
    return namea;
    public String getaged(){
    return agea;
    public double getBMI(){
    return BMIa;
    public String setname (String nameb){
    namea = nameb;
    return nameb;
    public void setyear(String ageb){
    agea = ageb;
    public void setBMII(double BMIb){
    BMIa = BMIb;
    }

    yush !
    i done it :D
    i just ended up lumping all the code into each case like i did last time, as when i had the calculations outside of the cases it wasnt taking the values from inside the case. nevermind....
    another problem i do have though, i need a loop so that once the program finishes it repeats itself until an X is entered, im not very good with loops :S
    i tend to try it like this
    quit = 1;
    while (quit<2){
    then just have one of the cases as quit +1
    so in mine it looks liek this:
    int quit=1;
    while (quit<2){
    String input = JOptionPane.showInputDialog(
    "Welcome to Chunks BMI calculator\n"+
    "a) Metric.\n"+
    "b) Imperial\n"+
    "q) Quit\n"+
    "\nPlease enter letter code" );
    char code = input.charAt(0);
    switch(code){
    case 'a':
    JOptionPane.showMessageDialog(null, "You have selected imperial. "+"\n\n" +" Thank you.");
    for(int c=0;c<2;c++){
    name = JOptionPane.showInputDialog("enter your name");
    age = JOptionPane.showInputDialog("enter your age");
    Hfeetstr = JOptionPane.showInputDialog("enter your Height in feet");
    Hinchesstr = JOptionPane.showInputDialog("enter the remaining inches");
    Wstonestr = JOptionPane.showInputDialog("enter your weight in stone");
    Wlbsstr = JOptionPane.showInputDialog("enter the remaining lbs");
    Hfeet = Float.parseFloat(Hfeetstr);
    Wstone = Float.parseFloat(Wstonestr);
    Hinches = Float.parseFloat(Hinchesstr);
    Wlbs = Float.parseFloat(Wlbsstr);
    Wlbs = Wlbs * 0.45359237;
    Hinches = Hinches * 0.0254;
    Hfeet = Hfeet * 0.3048;
    Wstone = Wstone * 6.35029318;
    bmiweight = Wstone + Wlbs;
    bmiheight = Hinches + Hfeet;
    BMI = bmiweight / (bmiheight*bmiheight);
    String cat="";
    if (BMI <18.5) cat = ("Posh spice");
    else if (BMI >= 18.5 && BMI <=25) cat = ("Fit !");
    else if (BMI >25 && BMI <=30) cat = ("Fatty !");
    else if (BMI >30)cat = ("Super Fatty");
    myItemArray[c].setcat(cat);
    myItemArray[c].setname(name);
    myItemArray[c].setyear(age);
    myItemArray[c].setBMII(BMI);
    break;
    case 'b': output= "Metric.";
    etc.....
    this is causing me the problems:
    for(int i = 0;i<2;i++){
    myItemArray[i] = new Item();
    says a non static variable cannot be referenced from a static context, i know im being stupid with my implementation, but whats a better way ?
    thanks again :)
    Edited by: Clunk on Nov 17, 2008 4:05 PM

  • Is there a way to run a 2005 PreSonus Firebox(with the firewire) to a mid-2011 iMac 0SX 10.7.2? It says its no longer supporting Power PC? Anything I can do without spending more money on new equipment or a new computer? Please help me.

    Is there a way to run a 2005 PreSonus Firebox(with the firewire) to a mid-2011 iMac 0SX 10.7.2? It says its no longer supporting Power PC? Anything I can do without spending more money on new equipment or a new computer? Please help me.

    Nevermind, I got it working.
    I ended up extracting the new vob within MPEG Streamclip, which gave me an m2v and an aiff audio. I multiplexed those two back together in FFMpegX which gave me a complete VIDEO_TS folder with BUP and IFO files I needed.

  • Hello Guys. I had problems in the Computer before and changed my HD. I saved in my all files documents in (Time Capsule). How can I put all my files, pictures documents on my new HD? Please Help. Thank You

    Hello Guys.
    I had problems in the Computer before and changed my HD. I saved in my all files documents in (Time Capsule). How can I put all my files, pictures documents on my new HD?
    Please Help.
    Thank You
    Julio Skov

    Hey
    Thank you very much for replay.
    Would you explain to me how can I do?
    I don't really understand these processes.
    Thak you very much
    Julio

  • HT201272 I purchased an audiobook in Nov 2012 using iPhone 4S and then upgraded to iPhone 5 in Dec. Now I am not seeing the audio book in purchase history in iTunes. This means I am not able to get the book in my new iPhone. Please help

    I purchased an audiobook in Nov 2012 using iPhone 4S and then upgraded to iPhone 5 in Dec. Now I am not seeing the audio book in purchase history in iTunes. This means I am not able to get the book in my new iPhone. Please help.

    Audiobooks are currently a one-time only download from the store. If you don't have it on your computer (audiobooks go into the Books part of your iTunes library) nor on a backup, then if it's still in the store you can try contacting iTunes support and see if they will grant you a re-download : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page

  • I have no trouble viewing apps in the iTunes Store on my iPad. However, every time I try to install a new app, I get an error message after a while - cannot connect to iTunes Store. This issues cropped up two days ago on my new iPad. Please help...

    I have no trouble viewing apps in the iTunes Store on my iPad. However, every time I try to install a new app, I get an error message after a while - cannot connect to iTunes Store. This issues cropped up two days ago on my new iPad. Please help...

    JUst experienced the exact  same problem after changing password.Getting same message. Hope someone has an answer for this.

  • Hi can anyone help me. I have a apple macbook laptop OSX 10.5.8 . When i push print, it shows my printer but says cannot communicate with printer. (epson stylus nx125). Do I need new drivers? Please help .  regards Cindy

    Hi can anyone help me. I have a apple macbook laptop OSX 10.5.8 . When i push print, it shows my printer but says cannot communicate with printer. (epson stylus nx125). Do I need new drivers? Please help .  regards Cindy

    Welcome to Apple Support Communities. We're users here and do not speak for "Apple Inc."
    Some basic printer troubleshooting steps before worrying about a printer driver:
    1. Have you tried turning the printer off and back on?
    2A. Is the printer attached with a cable?
         If yes, have you tried unplugging and re-plugging both ends of the printer cable?
         If that does not help, can you test the printer with another cable?
    2B. If your printer is not connected to the computer with a cable, have you tried restarting your printer (assuming wireless connection)?
         Have you tried restarting your wireless router?
    3. Have you tried restarting your MacBook? (Be sure to save your work first.)
    4. Does the printer have ink? (Doesn't usually generate a 'communications error' though)
    5. Have you updated OS X or the program you're trying to print from recently?

  • My osx version is 10.8.2. i was buying the facetime app for my mac. i got this error -"FaceTime can't be installed on "Macintosh HD" because the version of OS X is too new." so please help me out of this funny situation.

    my osx version is 10.8.2. i was buying the facetime app for my mac. i got this error -"FaceTime can’t be installed on “Macintosh HD” because the version of OS X is too new." so please help me out of this funny situation.

    https://www.apple.com/support/mac-apps/facetime/

  • NEED NEW CARD! Please help

    Alright, well my dumbass roommate decided to plug in his super nintendo to my TV@nywhere card. To make a long story short, he messed something up. The computer wouldnt boot. It would get to the windows screen and freeze. I formatted, problem was no more, untill I installed the VGA drivers.
    So now I cant do anythign with my screen, if I install the drivers, it wont boot.
    Now I plan on just getting a new VGA card. Was looking at some nVidia products, but I am uncertain what to get. I want to spend $50 or less (eBay).
    I have the MSI 651 MEGA PC. It says it has a APG 4x x1 slot on board, so I was just wondering what suggestions you guys had for a new card. Please help out if possible, thanks!

    Try the second hand ATI 9600XT.  

  • I want to transfer my Adobe CS3 licence to my new Laptop. Please help me for Deactivate Adobe CS3 licence from old Laptop

    I want to transfer my Adobe CS3 licence to my new Laptop.
    Please help me for Deactivate Adobe CS3 licence from old Laptop

    Hi sanket chalke,
    I'm not sure what Adobe product you need help with, but you might want to start with this document, which has deactivation information: Activation & Deactivation Help
    Please let us know how it goes.
    Best,
    Sara

  • HT1420 i have less than 5 authorised computers. yet cannot authorise my new iMAC27. Please help..

    i have less than 5 authorised computers. yet cannot authorise my new iMAC27. Please help..

    Hello Morfaly,
    Thanks for the question. The following article may provide a solution to your issue:
    iTunes: Missing folder or incorrect permissions may prevent authorization
    http://support.apple.com/kb/TS1277
    Thanks,
    Matt M.

Maybe you are looking for

  • HOW TO RETRIVE DATA IN FORM

    IN MY PRJ I HAD TO DISPLAY DATA FROM VARIOUS TABLE.SO I CREATED A VIEW AND IN THE FORM CREATED THE DATA BLOCK AND DISPLAYED THE DATA.IN THE FORM HOWEVER I HAVE PLACED FILTER BASED ON WHICH IT DIPLAYS THE CLOSED AND PENDING DATA. THE VIEW IS CREATE OR

  • CS2 Indesign CRASHES

    Any ideas on constant crashing on a Mac Mini? 2 gig ram installed. 10.4.11 OS... Indesign quits about 4 times a day, screen redraw is slow, very unreliable.

  • DPM Agent Communication Error

    We get the following error sporadically, and it seems to always deal with an Exchange Server service stealing the DPMRA port. Is there any way to get this to stop. We have to put the mailbox server in 2010 into DAG maintenance and restart services. T

  • 3850 command to show wireless user dACL

    Hi, I am using 3850 and 5760 with converged access mode. There is also ISE to provide dACL for wireless user. In 3850, I can issue "show access-list" to see the dACL from ISE. But I can't be sure which ACL apply to which user when there are more than

  • Can't update db

    ANyone expert know why there's error when i run the following script? I Would like to update a record the list of record Example, i would like to update a record name 'test2' to 'test3' in row 2.but the error invoked name mail row 1 test testmail row