I need help in class method

hello java lovers, i'm new here and the reson i joined is to learn some java :)
well my problem is that i ws given as assignment but i can't do it :(
i'm having a tones of errors :(
the question is:
Write an object-oriented program to fulfill the following requirements:
class Reading>>>>>used to read in an integer from the user
class Checking>>>>>used to check if an integer is more than 100
class Error>>>used to display error message if an integer is more than 100
class Client>>>>>reads three integers where each value is <=100. Display error message if the value is greater than 100. Calculate and display the average of the three integers.
and this the code i did
import java.io.*;
class Reading{
     int num1,num2,num3;
     void reading(){
     try{
     BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
     System.out.println("Enter the three integers: ");
     num1 = Integer.parseInt(input.readLine());     
     num2 = Integer.parseInt(input.readLine());     
     num3 = Integer.parseInt(input.readLine());     
     catch(Exception e){
          System.out.println("Error!!!!!!!!!!");
     void Chnecking(){
               int num1=0,num2=0,num3=0;     
     if (num1 > 100){
     System.out.println("The number is more than a 100!!!");
     if (num2 > 100){
     System.out.println("The number is more than a 100!!!");
     if (num3 > 100){
     System.out.println("The number is more than a 100!!!");
public class Client{
     public static void main (String args[]){
          reading num_1 = new reading();
          reading num_2 = new reading();
          reading num_3 = new reading();     
          num_1.reading();
          num_2.reading();
          num_3.reading();     
}i ws able to do it in the main class without any other class but when i tried to meet the rquierments i failed :((
plz help me
Message was edited by:
shifta

i really appreciate ur help but the lecturer gave us 1 week to do it :(
i'm new to java but i've done some C and VB programming b4 and they were alot easier...
as i told i ws able to do it with multi classes thingy
import java.io.*;
public class Client{
     public static void main (String args[]){
          int num1=0;
          int num2=0;
          int num3=0;
          int total=0;
          try{
          BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
          System.out.println("Enter the three integers: ");
          num1 = Integer.parseInt(input.readLine());     
          num2 = Integer.parseInt(input.readLine());     
          num3 = Integer.parseInt(input.readLine());     
     catch(Exception e){
          System.out.println("Error!!!!!!!!!!");
     if(num1>100)
     System.out.println("the first number is greater than 100 ");
     else if (num2>100)
     System.out.println("the second number is greater than 100");
     else if (num3>100)
     System.out.println("the third number is greater than 100");
     else{
     total = num1 + num2 + num3;
     System.out.println("The total = "+total);
}          would plz help me
just gimme an example :)

Similar Messages

  • Need help with Sound Methods

    Hi, I am new to java and need help with sound methods.
    q: create a new method that will halve the volume of the positive values and double the volume of the negative values.
    Message was edited by:
    Apaula30

    duplicate message #2

  • Need help with calling method

    I'm new to Java, trying to pass a required class so I can graduate this semester, and I need help figuring out what is wrong with the code below. My assignment is to create a program to convert celsius to fahrenheit and vice versa using Scanner for input. The program must contain 3 methods - main, convert F to C, method, and convert C to F method. Requirements of the conversion methods are one parameter which is an int representing temp, return an int representing calculated temp after doing appropriate calculation, should not display info to user, and should not take in info from user.
    The main method is required to ask the user to input a 1 for converting F to C, 2 for C to F, and 3 to end the program. It must include a while loop that loops until the user enters a 3, ask the user to enter a temp, call the appropriate method to do the conversion, and display the results. I'm having trouble calling the conversion methods and keep getting the following 2 compiler errors:
    cannot find symbol
    symbol : method farenheitToCelsius(int)
    location: class WondaPavoneTempConverter
    int celsius = farenheitToCelsius(intTemp);
    ^
    cannot find symbol
    symbol : method celsiusToFarenheit(int)
    location: class WondaPavoneTempConverter
    int farenheit = celsiusToFarenheit(intTemp);
    The code is as follows:
    public static void main(String[] args) {
    // Create a scanner
    Scanner scanner = new Scanner(System.in);
    // Prompt the user to enter a temperature
    System.out.println("Enter the temperature you wish to convert as a whole number: ");
    int intTemp = scanner.nextInt();
    System.out.println("You entered " + intTemp + " degrees.");
    // Prompt the user to enter "1" to convert to Celsius, "2" to convert to
    // Farenheit, or "3" to exit the program
    System.out.println("Enter 1 to convert to Celsius, 2 to convert to Farenheit, or 3 to exit.");
    int intConvert = scanner.nextInt();
    // Convert temperature to Celsius or Farenheit
    int celsius = farenheitToCelsius(intTemp);
    int farenheit = celsiusToFarenheit(intTemp);
    while (intConvert >= 0) {
    // Convert to Celsius
    if (intConvert == 1) {
    System.out.println("Celsius is " + celsius + " degrees.");
    // Convert to Farenheit
    else if (intConvert == 2) {
    System.out.println("Farenheit is " + farenheit + " degrees.");
    // Exit program
    else if (intConvert == 3) {
    break;
    else {
    System.out.println("The number you entered is invalid. Please enter 1, 2, or 3.");
    //Method to convert Celsius to Farenheit
    public static int celsiusToFahrenheit(int cTemp) {
    return (9 / 5) * (cTemp + 32);
    //Method to convert Farenheit to Celsius
    public static int fahrenheitToCelsius(int fTemp) {
    return (5 / 9) * (fTemp - 32);
    I readily admit I'm a complete dunce when it comes to programming - digital media is my area of expertise. Can anyone point me in the right direction? This assignment is due very soon. Thanks.

    1) consider using a boolean variable in the while statement and converting it to true if the input is good.
    while (inputNotValid)
    }2) put the code to get the input within the while loop. Try your code right now and enter the number 30 when your menu requests for input and you'll see the infinite loop.... and why you need to request input within the loop.
    3) Fix your equations. You are gonig to have to do some double calcs, even if you convert it back to int for the method return. Otherwise the results are just plain wrong. As a good test, put in the numbers -40, 0, 32, 100, and 212. Are the results as expected? (-40 is the only temp that is the same for both cent and fahr). I recommend doing double calcs and then casting the result to int in the return. for example:
    int a = (int) (20 + 42.0 / 3);  // the 42.0 forces the compiler to do double calc.4) One of your equations may still be plain wrong even with this fix. Again, run the test numbers and see.
    5) Also, when posting your code, please use code tags so that your code will be well-formatted and readable. To do this, either use the "code" button at the top of the forum Message editor or place the tag &#91;code&#93; at the top of your block of code and the tag &#91;/code&#93; at the bottom, like so:
    &#91;code&#93;
      // your code block goes here.
    &#91;/code&#93;

  • Need help writing a method..

    Hi, I am new to Java and I have a little problem with this statement:
    a soldTickets(int num) method that records the fact that the specified number of tickets have been sold at this booth.
    Basically I only wrote this part:
    public int soldTickets(int num)
    return num;
    I wonder if it is correct, if not what value should I return?

    i don't think tht shud correctly work. u just define a static variable num in the class. and just perform >num++ in the function and when the program executes u will get to know how many tickets r sold after >printing num. if u do this there is no need of any parameter to be passed in the function because u have >already defined it in the class.
    Bye ! i hope it works What happen when he want to enter 50 ticket at a time..then using ur code he needs to call that method 50 times.
    Sounds like you need a Booth object which has a variable - int totalTicketsSold;
    and a method - public void soldTickets(int num)
    in the body of the method num is added to totalTicketsSold; public int soldTickets(int num)
    totalTicketsSold = totalTicketsSold + num;
    return totalTicketsSold;
    I think this match ur requirment best...

  • Where to start? Need help with classes

    My question involves those classes he wants us to make. I don't really get the concept of classes, so could someone tell me what they think he wants us to do? And try to explain it to me in terms I might be able to understand. Does that mean for us to use subclasses or use separate files for each class? Or could I do either? I'm so confused :(
    Assignment: Write a program that consists of the classes listed below.
    Player Class: The Player Class consists of at least two elements -- the player name and a list of scores for
    games. The score attribute is not used in Program #3 but will be needed in Program #4. Include in the
    class appropriate accessor and mutator methods for each element in the class. You may have other
    attributes if needed.
    Team Class: The Team class consists of at least 6 elements -- the name of the team and five players from
    the Player class. Include in the class appropriate accessor and mutator methods for each element in the
    class. You may have other attributes if needed.
    Course Syllabus Page 3
    Input3 class: The Input3 class is provided for you. The Input3 class supplies data for your program. The
    Input3 class has a public method called getNextString, which returns a string with the input for your
    program, one after the other. You must use this class to get the data for your program. See Input3.java on
    WebCT to understand the class construction.
    Your program should display the roster of each team in alphabetical order by last name.
    This is the Input3 that he gave us to work with if anyone needs to see it:
    public class Input3
         private String[] input = new String[40];
         private static int StringNum = -1;
         public static final int NUMBER_OF_TEAMS = 3;
         public static final int NUMBER_OF_PLAYERS = 5;
         public Input3()
              //The first six inputs will be for the first team
              input[0] = "LAKERS";
              input[1] = "Kobe Bryant";
              input[2] = "Derek Fisher";
              input[3] = "Shaquille O'Neal";     
              input[4] = "Karl Malone";
              input[5] = "Brian Cook";
              //The next six inputs will be for the second team
              input[6] = "MAVERICKS";
              input[7] = "Antoine Walker";
              input[8] = "Dirk Nowitzki";
              input[9] = "Tony Delk";
              input[10] = "Shawn Bradley";
              input[11] = "Travis Best";
              //The next six inputs will be for the third team
              input[12] = "KNICKS";
              input[13] = "Mike Sweetney";
              input[14] = "Allan Houston";
              input[15] = "Howard Eisley";
              input[16] = "Kurt Thomas";
              input[17] = "Shanon Anderson";
         //This method returns the strings one after the other.
         public String getNextString()
              StringNum++;
              return input[StringNum];
    }<br>
    <br>
    <br>
    Thanks

    You could put the classes in separate files, but it's not necessary. They wouldn't be called 'subclasses' here, as that word is specific to inheritance, which you don't need here. Here's an example of using multiple classes:
    public class MainClass {
        public static void main(String [] args) {
         OtherClass1 oc1 = new OtherClass1(3);
         OtherClass2 oc2 = new OtherClass2("hello");
         System.out.println("" + oc1.getInt());
         System.out.println(oc2.getString());
    class OtherClass1 {
        int someInt;
        public OtherClass1(int i) {
            someInt = i;
        public getInt() {
         return someInt;
    class OtherClass2 {
        String someString;
        public OtherClass2(String s) {
            someString = s;
        public getString() {
            return someString;
    }and like BDLH said above, it's preferred to put them in separate files. Just make sure the file name is EXACTLY the same as the class name, followed by .java

  • Need help with classes

    I''ve just started out with Java and I need help with my latest program.
    The program looks someting like this:
    public class MultiServer {
       public static void main(Straing[] args) {
          ServerGUI GUI = new ServerGUI();
    public class ServerGUI extends JFrame implements ActionListener {
       private TextArea textArea;
       public ServerGUI() {
          //setting up the JFrame and stuff like that
       public void actionPerformed(ActionEvent event) {
          if(button == addButton) {
             addGUI add = new addGUI();
    public class addGUI extends JFrame implements ActionListener {
        private TextField t1 = new TextField(25);
        public addGUI() {
          //setting up the JFrame and stuff like that
       public void actionPerformed(ActionEvent event) {
          if(button == printButton) {
             textArea.append("THIS DOES NOT WORK!");
    }   The problem is as follows: I want to be able to write text in the textArea in class ServerGUI from the class addGUI, but I can't. I hope you understand what I mean.
    How is this fixed? Please help me!

    public void actionPerformed(ActionEvent event) {
          if(button == addButton) {
             addGUI add = new addGUI(textArea);
    public class addGUI extends JFrame implements ActionListener {
        private TextArea textArea;
        public addGUI(TextArea textArea) {
            this.textArea = textArea;
        }/Kaj

  • Need Help on CallServer Method

    I am implementing a PM for my custom control. I have two requirements for Call Server which I am not sure how to give input parameters. I am not able to find help in other controls implementations.
    1.I need to call a method (GetCustomCtrlInfo) in applet using Call server. But this method takes two parameters out of which one is a reference which contains the output value required to render my control. I tried using the ouput property set from the Callserver. But it donot contain the reference property set. How can I achieve this.
    ErrCode CSSSWEFrameOfferFile::GetCustomCtrlInfo (CSSSWEFieldItem* pFieldItem, CCFPropertySet& psCustCtrlProp)
    2.I need to call Applet method in which it is access Web Engine HTTP TXN ‘s GetAllRequestParameters. How can I set it while calling the CallServer method form my PModel.
    DOCHILD (m_pFrameMgr->GetModel (), GetService(SStext("Web Engine HTTP TXN"), pHttpService));
    DOCHILD (pHttpService, InvokeMethod (SStext("GetAllRequestParameters"), inputs, outputs));
    Is there any argument in input property set that can be used to achieve the both of above?

    Hi
    I was able to write the function using recursion (thanks a lot !!!), and its tested to be correct. Now , i am able to get the correct element given the index and also the stack remains the as it is upon return to the function call.
    But, if the index is out of bound , that is if its not in the stack , then i am supposed to throw an exception (any exception will do) without altering the original stack. I was thinking of using stack.size() check at the begining f the program to throw the exception, but then , i i cant use the size() method here , so in this case, is there any way i can accomodate the exceptional condition with the oroginal stack intact ? because , i tried a few ways but then everytime the stack is beign destroyed if i throw the exception...
    any pointer will be appreciated!
    here is my function
    int getStackElement( Stack<Integer> stack, int index ) throws Exception
              int res = 0;
              int value = 0;
              int count = index;
              if(count == 0){                    
                        return stack.peek().intValue();
                   }else {
                        value = stack.pop();
                        res = getStackElement(stack, --count);
                        stack.push(value);
                        return res;
         

  • Need help in compare method of Comparator class

    I am writing a program that will display elements of a TreeMap in an order in which I want. By default the order is ascending. To change the order I need to override the compare method of the Comparator class.
    I've done this in my code below.
    I want to display keys with lower-case 1st and then those with upper-case.
    Please help.
    import java.util.*;
    public class MyComparator implements Comparator {
      public int compare(Object o1, Object o2) {
        String s1 = o1.toString();
        String s2 = o2.toString();
        return s1.compareTo(s2);
      public static void main(String[] args) {
        Map names = new TreeMap(new MyComparator());
        names.put("a", new Integer(1435)); 
        names.put("b", new Integer(1110));
        names.put("A", new Integer(1425));
        names.put("B", new Integer(987));
        names.put("C", new Integer(1323));   
        Set namesSet = names.keySet();
        Iterator iter = namesSet.iterator();
        while(iter.hasNext()) {
          String who = (String)iter.next();
          System.out.println(who + " => " +     names.get(who));
    }

    public int compare(Object o1, Object o2) {
        String s1 = o1.toString();
        String s2 = o2.toString();
        String ss1 = beginsWithLowerLetter(s1)? s1.toUpperCase() : s1.toLowerCase();
        String ss2 = beginsWithLowerLetter(s2)? s2.toUpperCase() : s2.toLowerCase();
        return ss1.compareTo(ss2);
    }

  • Need help on last method in this class

    import java.util.*;
    import java.util.Random;
    class Homework2
    static Scanner keyboard = new Scanner(System.in);
    public static void main(String args[])
    final int beer = 1;
    final int ale = 2;
    final int wine = 3;
    final int bourbon = 4;
    final int scotch = 5;
    final int rum = 6;
    final int water = 7;
    int x = getRandom(beer, ale, wine, bourbon, scotch, rum, water);
    switch(x)
    case 1:
    System.out.println("first drink is beer");
         break;
         case 2:
    System.out.println("first drink is ale");
         break;
         case 3:
    System.out.println("first drink is wine");
         break;
    case 4:
    System.out.println("first drink is bourbon");
         break;
         case 5:
    System.out.println("first drink is scotch");
         break;
    case 6:
    System.out.println("first drink is rum");
         break;
    case 7:
    System.out.println("first drink is water");
         break;
    int y = getRandom2(beer, ale, wine, bourbon, scotch, rum, water);
    switch(y)
    case 1:
    System.out.println("first drink is beer");
         break;
         case 2:
    System.out.println("first drink is ale");
         break;
         case 3:
    System.out.println("first drink is wine");
         break;
    case 4:
    System.out.println("first drink is bourbon");
         break;
         case 5:
    System.out.println("first drink is scotch");
         break;
    case 6:
    System.out.println("first drink is rum");
         break;
    case 7:
    System.out.println("first drink is water");
         break;
    System.out.print(x + " " + y);
    double z = alcoholicCon(x,y); (* Here is where i started with problems*)
    System.out.println(z);
    public static int getRandom(int a, int b, int c, int d, int e, int f, int g)
    Random generator = new Random();
    return (int)(1 + Math.random()* 7);
    public static int getRandom2(int h, int i, int j, int k, int l, int m, int n)
    Random generator = new Random();
    return (int)(1 + Math.random()* 7);
    public static double alcoholicCon(int o, int p,) (*Error here*)
    double content1;
    double content2;
    double content;
    if(o==1)
    content1=.04;
    if(o==2)
    content1=.07;
    if(o==3)
    content1=.12;
    if(o==4)
    content1=.40;     
    if(o==5)
    content1=.60;
    if(o==6)
    content1=.77;          
    if(o==7)
    content1=.00;
    if(p==1)
    content2=.04;
    if(p==2)
    content2=.07;
    if(p==3)
    content2=.12;
    if(p==4)
    content2=.40;     
    if(p==5)
    content2=.60;
    if(p==6)
    content2=.77;          
    if(p==7)
    content2=.00;
         content = content1 + content2;
         return content;      
    Here is the program everything worked great till i added the last method, i keep getting a illegal start of type error message now. Do i have to switch my data type in the main? or do i have to switch it down in the method?

    WOW, Im not sure what you are trying to do.
    What was the compiler error?
    Just an observation,
    Both of your getRandom() and getRandom2(), you pass in 7 parameters and do nothing with them. you really do not need to do this. Also both of those methods do exactly the same thing, the same way. Thats just redundant.
    You could say something like:
         public static int newRandom(){
            return (int) (1 + Math.random() * 7);
        }Also check your method signature for the
    public static double alcoholicCon(int o, int p,){I see your error, do you? Hint: too much punctuation...
    Also, you should initialize your method variables to a value.
    Darn too slow...
    Message was edited by:
    Java_Jay

  • Need help calling a method from an immutable class

    I'm having difficulties in calling a method from my class called Cabin to my main. Here's the code in my main              if(this is where i want my method hasKitchen() from my Cabin class)
                        System.out.println("There is a kitchen.");
                   else
                        System.out.println("There is not a kitchen.");
                   }and here's my method from my Cabin class:public boolean hasKitchen()
         return kitchen;
    }

    You should first have an instance of Cabin created by using
       Cabin c = ....
       if (c.hasKitchen()) {
         System.out.println("There is a kitchen.");
       } else {
            System.out.println("There is not a kitchen.");
       }

  • Need help getting Main method to work...

    Hello everyone, I have a problem, I have a GUI that I need to run (it compiles fine, but will not run.) I am very new to Java and programing in general so go easy on me. I think I am just missing something simple here. I am going to post the basic code and see if you all can help...the issue is in written in red to help you identify my problem...
    public class LagersGUI extends JFrame implements ActionListener,Serializable
    {color:#0000ff}private {color}JTextArea {color:#339966}textArea{color};
    {color:#0000ff}private {color}JButton {color:#339966}start,
    next,
    previous,
    last;{color}
    JLabel {color:#339966}imageLabel{color};
    {color:#0000ff}private static{color} LagersAddInfo {color:#339966}inv{color} = {color:#0000ff}new {color}LagersAddInfo();
    {color:#808080} /**
    * @param arg0
    * @throws HeadlessException
    */{color}
    {color:#0000ff}public {color}LagersGUI( String arg0 ) {color:#0000ff}throws {color}HeadlessException
    {color:#0000ff}super{color}( {color:#ff9900}"Inventory GUI" {color});
    {color:#339966}textArea{color} = {color:#0000ff}new {color}JTextArea( 800,800 );
    JScrollPane scrollPane = new JScrollPane( {color:#339966}textArea{color} );
    textArea.setEditable( {color:#0000ff}false {color});
    scrollPane.setVerticalScrollBarPolicy( JScrollPane.VERTICAL_SCROLLBAR_ALWAYS );
    scrollPane.setPreferredSize( new Dimension( 600, 100 ) );
    JPanel cp = new JPanel();
    cp.setSize( 400, 100 );
    cp.setLayout( new BorderLayout() );
    cp.add( scrollPane,BorderLayout.{color:#339966}CENTER{color} );
    JPanel buttonPanel = new JPanel();
    JPanel buttonPanel1 = new JPanel();
    {color:#339966}start{color} = new JButton( {color:#ff9900}"Start"{color} );
    {color:#339966}start{color}.addActionListener( {color:#0000ff}this {color});
    {color:#339966} next{color} = new JButton( {color:#ff9900}"Next" {color});
    {color:#339966} next{color}.addActionListener( {color:#0000ff}this {color});
    {color:#339966}previous{color} = new JButton( {color:#ff9900}"Previous"{color} );
    {color:#339966} previous{color}.addActionListener( {color:#0000ff}this {color});
    {color:#339966} last{color} = new JButton({color:#ff9900} "Last"{color} );
    {color:#339966} last{color}.addActionListener( {color:#0000ff}this {color});
    buttonPanel.add( {color:#339966}start {color});
    buttonPanel.add( {color:#339966}next {color});
    buttonPanel.add( {color:#339966}previous {color});
    buttonPanel.add( {color:#339966}last {color});
    cp.add( buttonPanel,BorderLayout.{color:#339966}SOUTH {color});
    cp.add( buttonPanel1,BorderLayout.{color:#339966}NORTH {color});{color:#999999}///NewInventory_Test/logo.gif{color}
    java.net.URL u = {color:#0000ff}this{color}.getClass().getClassLoader().getResource({color:#ff9900}"\\NewInventory_Test\\logo.gif"{color});
    ImageIcon icon = {color:#0000ff}new {color}ImageIcon(u);
    {color:#339966}imageLabel{color} = new JLabel( {color:#ff9900}"Inventory View"{color}, icon, JLabel.{color:#339966}CENTER {color});
    cp.add({color:#339966} imageLabel{color},BorderLayout.{color:#339966}WEST{color} );
    {color:#0000ff}this{color}.setContentPane( cp );
    {color:#0000ff}this{color}.setContentPane( cp );
    {color:#0000ff}this{color}.setTitle( "Inventory Program IT 215" );
    {color:#0000ff}this{color}.setDefaultCloseOperation( JFrame.{color:#339966}EXIT_ON_CLOSE{color} );
    {color:#0000ff} this{color}.{color:#339966}textArea{color}.setText({color:#339966}inv{color}.getStart());
    {color:#0000ff} this{color}.setSize(200, 200);
    {color:#0000ff}this{color}.pack();
    {color:#0000ff}this{color}.setVisible( {color:#0000ff}true {color});
    @Override
    {color:#0000ff}public void{color} actionPerformed( ActionEvent e )
    // TODO Auto-generated method stub
    {color:#0000ff} if {color}( e.getActionCommand().equals({color:#ff9900} "Start"{color} ) )
    textArea.setText( {color:#339966}inv{color}.getStart() );
    {color:#0000ff}if {color}( e.getActionCommand().equals( {color:#ff9900}"Next" {color}) )
    textArea.setText({color:#339966}inv{color}.getNext());
    {color:#0000ff}if{color} ( e.getActionCommand().equals( {color:#ff9900}"Previous" {color}) )
    textArea.setText( {color:#339966}inv{color}.getPrevious() );
    {color:#0000ff} if{color} ( e.getActionCommand().equals( {color:#ff9900}"Last"{color} ) )
    textArea.setText({color:#339966}inv{color}.getLast());
    {color:#0000ff}public static {color}LagersAddInfo getInv()
    {color:#0000ff}return{color:#339966} {color}{color}{color:#339966}inv{color};
    {color:#0000ff}public static void{color} setInv( LagersAddInfo inv )
    LagersGUI.{color:#339966}inv {color}= inv;
    {color:#808080} /**
    * @param args
    */{color}
    {color:#0000ff}public static void {color}main( String[] args )
    LagersGUI {color:#ff0000}_inventory_ {color}= {color:#0000ff}new {color}LagersGUI( {color:#ff9900}"Inventory"{color} );{color:#ff0000}//** here's the part I'm having trouble with...inventory is an * unused variable. What other way could I get {color:#000000}main{color} */ method to work?{color}
    }

    This forum can format your code for you and make it easier to read. Simply click the CODE button and two tags will appear. Then paste your code in between the tags. Important, copy code form your source not first post.                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Need help with drawLine method

    Hello,
    I've been having trouble with a recent programming assignment and the prof isn't being very helpful. I need to call the drawLine method to plot a line between (0,0) and two coordinates entered by the user; is there a way to do this without a JPanel? Here are the specs:
    I've already done Part 1., just posting it to give a complete representation of the assignment.
    Part 1. Implement a ComplexNumber class to represent complex numbers (z = a + bi).
    1) Instance variables:
    private int real; /* real part */
    private int imag; /* imaginary part */
    2) Constructor:
    public ComplexNumber ( int realVal, int imagVal )
    { /* initialize real to realVal and imag to imagVal */ }
    3) Get/Set functions:
    public int getReal ( )
    { /* returns the real part */ }
    public int getImag ( )
    { /* returns the imaginary part */ }
    public void setReal ( int realVal )
    { /* sets real to realVal */ }
    public void setImag ( int imagVal )
    { /* sets imag to imagVal */ }
    Part 2. Implement a ComplexNumberPlot class (with a main method) that gets complex
    numbers from the user and plots them. The user will be prompted a complex number until
    he/she enters 0. The numbers will be input from the keyboard (System.in) and displayed
    in the plot as they are entered. Assume that the user will enter the numbers in blank
    separated format. For example, if the user wants to enter three complex numbers: 3 + 4i,
    5 + 12i, and 15 + 17i, the input sequence will be:
    3 4
    5 12
    15 17
    0 0
    To plot a complex number, you need to draw a line between (0,0) and (real, imag) using
    the drawLine method.
    Name your classes as ComplexNumber and ComplexNumberPlot.
    For simplicity, you can assume that the complex numbers input by the user fall
    into the first quadrant of the complex plane, i.e. both real and imaginary values
    are positive.
    Thanks for any help!

    Ok I've made some progress, here is what I've got.
    public class ComplexNumber
    private int real;
    private int imag;
    public ComplexNumber (int realVal, int imagVal)
    real = realVal;
    imag = imagVal;
    public int getReal()
    return real;
    public int getImag()
    return imag;
    public void setReal(int realVal)
    real = realVal;
    public void setImag(int imagVal)
    imag = imagVal;
    import java.util.Scanner;
    import java.awt.*;
    import javax.swing.*;
    public class ComplexNumberPlot
    public static void main (String [] args)
    ComplexNumber num = new ComplexNumber (1,0);
    Scanner scan = new Scanner (System.in);
    System.out.println("Enter a complex number(s):");
    num.setReal(scan.nextInt());
    num.setImag(scan.nextInt());
    while (num.getReal() + num.getImag() != 0)
    num.setReal(scan.nextInt());
    num.setImag(scan.nextInt());
    System.out.println();
    JFrame frame = new JFrame ("ComplexNumberPlot");
    frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
    ComplexPanel panel = new ComplexPanel();
    frame.getContentPane().add(panel);
    frame.pack();
    frame.setVisible(true);
    class ComplexPanel extends JPanel
    public ComplexPanel()
    setPreferredSize (new Dimension(150,150));
    public void PaintComponent (Graphics page)
    super.paintComponent(page);
    page.drawLine(0,0,100,100);
    However
    1) The JPanel pops up but no line is drawn.
    2) I am not sure how to get the variables I'm scanning for to work in the drawLine method
    Thanks for all your help so far.

  • Need help with a method

    I am re-writing this method because it does not return the expected data. I
    am still somewhat new to coding in Forte. Please help if you can. The
    error exception message I receive when I run is.....
    This error is a TOOL CODE ERROR
    Detected In:
    Class: RPTClientNumberList
    Method: DBCursor::Open
    Location: 0
    Forte Error Message is:
    No input values supplied for the SQL statement.
    Additional Information:
    **** End of Error ****
    No matter what changes I make to the SQL I still receive this error.
    //: Parameters: pReportCriteria : ClientNumberListReportCriteria
    //: Returns: Array of ClientNumberListReportData
    //: Purpose: To get the data required for the ClientNumberListReportData.
    //: Logic
    //: History: mm/dd/yy xxx comment
    lClientTransfersArray : Array of ClientNumberListReportData = new();
    lResultArray : Array of ClientNumberListReportData =
    new();
    lReportData : ClientNumberListReportData;
    lReportInfo :
    ClientNumberListReportTransactions;
    lThis : TextData =
    'ReportSQLAgent.SelectClientNumberListReportData()';
    lSQL : TextData = new();
    lSQL.SetValue(
    'SELECT C.ClientName aClientName, \
    CN.ClientNumber aClientNumber, \
    CN.ClientNumberID aClientNumberID, \
    T.TeamNumber aIsTeamID, \
    AM.FirstName aFirstName, \
    AM.MiddleName aMiddleName, \
    AM.LastName aLastName \
    FROM SUPER_DBA.Client C, \
    SUPER_DBA.ClientN CN, \
    SUPER_DBA.Team T, \
    SUPER_DBA.OASUSER AM \
    WHERE CN.ClientID = C.ClientID and \
    CN.ISTeamID = T.TeamID
    and \
    CN.IsActive = \'Y\' AND
    CN.AccountMgrID = AM.UserID ');
    // If the criteria contains an ISTeamID, search by it.
    if pReportCriteria.aISTeamID <> cEmptyDropListValue then
    lSQL.concat( ' and CN.ISTeamID = ');
    lSQL.concat( pReportCriteria.aISTeamID );
    end if;
    begin transaction
    lDynStatement : DBStatementHandle;
    lInputDesc : DBDataset;
    lOutputDesc : DBDataset;
    lOutputData : DBDataset;
    lRowType : Integer;
    lStatementType : Integer;
    // The prepare method parses the SQL statement, verifying the
    // syntax and returns a statement identifier (the handle
    lDynStatement)
    // to use as a reference
    lDynStatement = DefaultDBSession.prepare( lSQL, lInputDesc,
    lStatementType );
    // The opencursor method positions the cursor before the first row
    // in the result set
    lRowType = DefaultDBSession.OpenCursor( lDynStatement, lInputDesc,
    lOutputDesc );
    lNumRows : Integer;
    while true do
    lNumRows = DefaultDBSession.FetchCursor( lDynStatement,
    lOutputData );
    if lNumRows <= 0 then
    exit;
    end if;
    lReportData = new();
    lReportData.aFirstName = TextData(
    lOutputData.GetValue(ColumnName='aFirstName')).value;
    lReportData.aMiddleName = TextData(
    lOutputData.GetValue(ColumnName='aMiddleName')).value;
    lReportData.aLastName = TextData(
    lOutputData.GetValue(ColumnName='aLastName')).value;
    lReportData.aClientName = TextData(
    lOutputData.GetValue(ColumnName='aClientName')).value;
    lReportData.aClientNumber = DoubleNullable(
    lOutputData.GetValue(ColumnName='aClientNumber')).TextValue.value;
    lReportData.aClientNumberID = DoubleNullable(
    lOutputData.GetValue(ColumnName='aClientNumberID')).integervalue;
    lReportData.aIsTeamID = IntegerNullable(
    lOutputData.GetValue(ColumnName='aIsTeamID')).TextValue.value;
    lResultArray.AppendRow( lReportData );
    end while;
    // Close the cursor
    DefaultDBSession.CloseCursor( lDynStatement );
    // Remove the cursor to free resources
    DefaultDBSession.RemoveStatement( lDynStatement );
    end transaction;
    for lEach in lResultArray do
    lHistorySQL : TextData = new();
    lHistorySQL.SetValue(
    'SELECT CNH.isActive aIsActive, \
    T.TeamNumber aTeamID, \
    CNH.ModifyDateTime
    aTransactionDate \
    FROM SUPER_DBA.ClientNH CNH, \
    SUPER_DBA.Team T \
    WHERE CNH.ISTeamID = T.TeamID and \
    CNH.ClientNumberID =
    :lResultArray.aClientNumberID ');
    // If a date range was specified, include it in the SQL
    if NOT pReportCriteria.aStartDate.IsNull then
    lHistorySQL.concat( ' and CNH.ModifyDateTime between
    :pReportCriteria.aStartDate ');
    lHistorySQL.concat( ' and :pReportCriteria.aEndDate ');
    end if;
    begin transaction
    lDynStatement : DBStatementHandle;
    lInputDesc : DBDataset;
    lOutputDesc : DBDataset;
    lOutputData : DBDataset;
    lRowType : Integer;
    lStatementType : Integer;
    // The prepare method parses the SQL statement, verifying
    the
    // syntax and returns a statement identifier (the handle
    lDynStatement)
    // to use as a reference
    lDynStatement = DefaultDBSession.prepare( lHistorySQL,
    lInputDesc, lStatementType );
    // The opencursor method positions the cursor before the
    first row
    // in the result set
    lRowType = DefaultDBSession.OpenCursor( lDynStatement,
    lInputDesc, lOutputDesc );
    lNumRows : Integer;
    while true do
    lNumRows = DefaultDBSession.FetchCursor(
    lDynStatement, lOutputData );
    if lNumRows <= 0 then
    exit;
    end if;
    lReportInfo = new();
    lReportInfo.aIsActive = TextData(
    lOutputData.GetValue(ColumnName='aIsActive')).value;
    lReportInfo.aISTeamID =
    IntegerNullable(
    lOutputData.GetValue(ColumnName='aTeamID')).TextValue.value;
    lReportInfo.aTransactionDate = DateTimeData(
    lOutputData.GetValue(ColumnName='aTransactionDate'));
    lResultArray.AppendRow( lReportData );
    end while;
    // Close the cursor
    DefaultDBSession.CloseCursor( lDynStatement );
    // Remove the cursor to free resources
    putline( '%1: Removing the cursor.', lThis );
    DefaultDBSession.RemoveStatement( lDynStatement );
    end transaction;
    lLastTeamNumber : string = cEmptyText;
    lKeepRecord : boolean = False;
    if lReportInfo.aISTeamID <> lLastTeamNumber then
    lLastTeamNumber = lReportInfo.aISTeamID;
    lReportInfo.aTransactionDescription = 'New Team Assignment';
    lResultArray.appendRow( lReportInfo );
    end if;
    if lReportInfo.aIsActive = 'N' then
    lReportInfo.aTransactionDescription = 'Team Number Deleted';
    lResultArray.appendRow( lReportInfo );
    end if;
    end for;
    // Success! Excellent!! Return the ClientNumberListReportData!
    return lResultArray;
    exception
    when e : GenericException do
    LogException( e, lThis );
    raise e;
    Lisa M. Tucci - Applications Programmer
    Business Applications Support and Development - West Corporation
    tel.: (402) 964-6360 ex: 208-4360 stop: W8-IS e-mail: lmtucciwest.com

    I am re-writing this method because it does not return the expected data. I
    am still somewhat new to coding in Forte. Please help if you can. The
    error exception message I receive when I run is.....
    This error is a TOOL CODE ERROR
    Detected In:
    Class: RPTClientNumberList
    Method: DBCursor::Open
    Location: 0
    Forte Error Message is:
    No input values supplied for the SQL statement.
    Additional Information:
    **** End of Error ****
    No matter what changes I make to the SQL I still receive this error.
    //: Parameters: pReportCriteria : ClientNumberListReportCriteria
    //: Returns: Array of ClientNumberListReportData
    //: Purpose: To get the data required for the ClientNumberListReportData.
    //: Logic
    //: History: mm/dd/yy xxx comment
    lClientTransfersArray : Array of ClientNumberListReportData = new();
    lResultArray : Array of ClientNumberListReportData =
    new();
    lReportData : ClientNumberListReportData;
    lReportInfo :
    ClientNumberListReportTransactions;
    lThis : TextData =
    'ReportSQLAgent.SelectClientNumberListReportData()';
    lSQL : TextData = new();
    lSQL.SetValue(
    'SELECT C.ClientName aClientName, \
    CN.ClientNumber aClientNumber, \
    CN.ClientNumberID aClientNumberID, \
    T.TeamNumber aIsTeamID, \
    AM.FirstName aFirstName, \
    AM.MiddleName aMiddleName, \
    AM.LastName aLastName \
    FROM SUPER_DBA.Client C, \
    SUPER_DBA.ClientN CN, \
    SUPER_DBA.Team T, \
    SUPER_DBA.OASUSER AM \
    WHERE CN.ClientID = C.ClientID and \
    CN.ISTeamID = T.TeamID
    and \
    CN.IsActive = \'Y\' AND
    CN.AccountMgrID = AM.UserID ');
    // If the criteria contains an ISTeamID, search by it.
    if pReportCriteria.aISTeamID <> cEmptyDropListValue then
    lSQL.concat( ' and CN.ISTeamID = ');
    lSQL.concat( pReportCriteria.aISTeamID );
    end if;
    begin transaction
    lDynStatement : DBStatementHandle;
    lInputDesc : DBDataset;
    lOutputDesc : DBDataset;
    lOutputData : DBDataset;
    lRowType : Integer;
    lStatementType : Integer;
    // The prepare method parses the SQL statement, verifying the
    // syntax and returns a statement identifier (the handle
    lDynStatement)
    // to use as a reference
    lDynStatement = DefaultDBSession.prepare( lSQL, lInputDesc,
    lStatementType );
    // The opencursor method positions the cursor before the first row
    // in the result set
    lRowType = DefaultDBSession.OpenCursor( lDynStatement, lInputDesc,
    lOutputDesc );
    lNumRows : Integer;
    while true do
    lNumRows = DefaultDBSession.FetchCursor( lDynStatement,
    lOutputData );
    if lNumRows <= 0 then
    exit;
    end if;
    lReportData = new();
    lReportData.aFirstName = TextData(
    lOutputData.GetValue(ColumnName='aFirstName')).value;
    lReportData.aMiddleName = TextData(
    lOutputData.GetValue(ColumnName='aMiddleName')).value;
    lReportData.aLastName = TextData(
    lOutputData.GetValue(ColumnName='aLastName')).value;
    lReportData.aClientName = TextData(
    lOutputData.GetValue(ColumnName='aClientName')).value;
    lReportData.aClientNumber = DoubleNullable(
    lOutputData.GetValue(ColumnName='aClientNumber')).TextValue.value;
    lReportData.aClientNumberID = DoubleNullable(
    lOutputData.GetValue(ColumnName='aClientNumberID')).integervalue;
    lReportData.aIsTeamID = IntegerNullable(
    lOutputData.GetValue(ColumnName='aIsTeamID')).TextValue.value;
    lResultArray.AppendRow( lReportData );
    end while;
    // Close the cursor
    DefaultDBSession.CloseCursor( lDynStatement );
    // Remove the cursor to free resources
    DefaultDBSession.RemoveStatement( lDynStatement );
    end transaction;
    for lEach in lResultArray do
    lHistorySQL : TextData = new();
    lHistorySQL.SetValue(
    'SELECT CNH.isActive aIsActive, \
    T.TeamNumber aTeamID, \
    CNH.ModifyDateTime
    aTransactionDate \
    FROM SUPER_DBA.ClientNH CNH, \
    SUPER_DBA.Team T \
    WHERE CNH.ISTeamID = T.TeamID and \
    CNH.ClientNumberID =
    :lResultArray.aClientNumberID ');
    // If a date range was specified, include it in the SQL
    if NOT pReportCriteria.aStartDate.IsNull then
    lHistorySQL.concat( ' and CNH.ModifyDateTime between
    :pReportCriteria.aStartDate ');
    lHistorySQL.concat( ' and :pReportCriteria.aEndDate ');
    end if;
    begin transaction
    lDynStatement : DBStatementHandle;
    lInputDesc : DBDataset;
    lOutputDesc : DBDataset;
    lOutputData : DBDataset;
    lRowType : Integer;
    lStatementType : Integer;
    // The prepare method parses the SQL statement, verifying
    the
    // syntax and returns a statement identifier (the handle
    lDynStatement)
    // to use as a reference
    lDynStatement = DefaultDBSession.prepare( lHistorySQL,
    lInputDesc, lStatementType );
    // The opencursor method positions the cursor before the
    first row
    // in the result set
    lRowType = DefaultDBSession.OpenCursor( lDynStatement,
    lInputDesc, lOutputDesc );
    lNumRows : Integer;
    while true do
    lNumRows = DefaultDBSession.FetchCursor(
    lDynStatement, lOutputData );
    if lNumRows <= 0 then
    exit;
    end if;
    lReportInfo = new();
    lReportInfo.aIsActive = TextData(
    lOutputData.GetValue(ColumnName='aIsActive')).value;
    lReportInfo.aISTeamID =
    IntegerNullable(
    lOutputData.GetValue(ColumnName='aTeamID')).TextValue.value;
    lReportInfo.aTransactionDate = DateTimeData(
    lOutputData.GetValue(ColumnName='aTransactionDate'));
    lResultArray.AppendRow( lReportData );
    end while;
    // Close the cursor
    DefaultDBSession.CloseCursor( lDynStatement );
    // Remove the cursor to free resources
    putline( '%1: Removing the cursor.', lThis );
    DefaultDBSession.RemoveStatement( lDynStatement );
    end transaction;
    lLastTeamNumber : string = cEmptyText;
    lKeepRecord : boolean = False;
    if lReportInfo.aISTeamID <> lLastTeamNumber then
    lLastTeamNumber = lReportInfo.aISTeamID;
    lReportInfo.aTransactionDescription = 'New Team Assignment';
    lResultArray.appendRow( lReportInfo );
    end if;
    if lReportInfo.aIsActive = 'N' then
    lReportInfo.aTransactionDescription = 'Team Number Deleted';
    lResultArray.appendRow( lReportInfo );
    end if;
    end for;
    // Success! Excellent!! Return the ClientNumberListReportData!
    return lResultArray;
    exception
    when e : GenericException do
    LogException( e, lThis );
    raise e;
    Lisa M. Tucci - Applications Programmer
    Business Applications Support and Development - West Corporation
    tel.: (402) 964-6360 ex: 208-4360 stop: W8-IS e-mail: lmtucciwest.com

  • Need help with class info and cannot find symbol error.

    I having problems with a cannot find symbol error. I cant seem to figure it out.
    I have about 12 of them in a program I am trying to do. I was wondering if anyone could help me out?
    Here is some code I am working on:
    // This will test the invoice class application.
    // This program involves a hardware store's invoice.
    //import java.util.*;
    public class InvoiceTest
         public static void main( String args[] )
         Invoice invoice1 = new Invoice( "1234", "Hammer", 2, 14.95 );
    // display invoice1
         System.out.println("Original invoice information" );
         System.out.println("Part number: ", invoice1.getPartNumber() );
         System.out.println("Description: ", invoice1.getPartDescription() );
         System.out.println("Quantity: ", invoice1.getQuantity() );
         System.out.println("Price: ", invoice1.getPricePerItem() );
         System.out.println("Invoice amount: ", invoice1.getInvoiceAmount() );
    // change invoice1's data
         invoice1.setPartNumber( "001234" );
         invoice1.setPartDescription( "Yellow Hammer" );
         invoice1.setQuantity( 3 );
         invoice1.setPricePerItem( 19.49 );
    // display invoice1 with new data
         System.out.println("Updated invoice information" );
         System.out.println("Part number: ", invoice1.getPartNumber() );
         System.out.println("Description: ", invoice1.getPartDescription() );
         System.out.println("Quantity: ", invoice1.getQuantity() );
         System.out.println("Price: ", invoice1.getPricePerItem() );
         System.out.println("Invoice amount: ", invoice1.getInvoiceAmount() );
    and that uses this class file:
    public class Invoice
    private String partNumber;
    private String partDescription;
    private int quantityPurchased;
    private double pricePerItem;
         public Invoice( String ID, String desc, int purchased, double price )
              partNumber = ID;
         partDescription = desc;
         if ( purchased >= 0 )
         quantityPurchased = purchased;
         if ( price > 0 )
         pricePerItem = price;
    public double getInvoiceAmount()
         return quantityPurchased * pricePerItem;
    public void setPartNumber( String newNumber )
         partNumber = newNumber;
         System.out.println(partDescription+" has changed to part "+newNumber);
    public String getPartNumber()
         return partNumber;
    public void setDescription( String newDescription )
         System.out.printf("%s now refers to %s, not %s.\n",
    partNumber, newDescription, partDescription);
         partDescription = newDescription;
    public String getDescription()
         return partDescription;
    public void setPricePerItem( double newPrice )
         if ( newPrice > 0 )
    pricePerItem = newPrice;
    public double getPricePerItem()
    return pricePerItem;
    Any tips for helping me out?

    System.out.println("Part number:
    "+invoice1.getPartNumber;
    The + sign will concatenate invoice1.getPartNumber()
    after "Part number: " forming only one String.I added the plus sign and it gives me more errors:
    C:\>javac InvoiceTest.java
    InvoiceTest.java:16: operator + cannot be applied to java.lang.String
            System.out.println("Part number: ",   + invoice1.getPartNumber() );
                                                  ^
    InvoiceTest.java:17: cannot find symbol
    symbol  : method getPartDescription()
    location: class Invoice
            System.out.println("Description: ", + invoice1.getPartDescription() );
                                                          ^
    InvoiceTest.java:17: cannot find symbol
    symbol  : method println(java.lang.String,int)
    location: class java.io.PrintStream
            System.out.println("Description: ", + invoice1.getPartDescription() );
                      ^
    InvoiceTest.java:18: cannot find symbol
    symbol  : method getQuantity()
    location: class Invoice
            System.out.println("Quantity: ", + invoice1.getQuantity() );
                                                       ^
    InvoiceTest.java:18: cannot find symbol
    symbol  : method println(java.lang.String,int)
    location: class java.io.PrintStream
            System.out.println("Quantity: ", + invoice1.getQuantity() );
                      ^
    InvoiceTest.java:19: cannot find symbol
    symbol  : method println(java.lang.String,double)
    location: class java.io.PrintStream
            System.out.println("Price: ", + invoice1.getPricePerItem() );
                      ^
    InvoiceTest.java:20: cannot find symbol
    symbol  : method println(java.lang.String,double)
    location: class java.io.PrintStream
            System.out.println("Invoice amount: ", + invoice1.getInvoiceAmount() );
                      ^
    InvoiceTest.java:24: cannot find symbol
    symbol  : method setPartDescription(java.lang.String)
    location: class Invoice
            invoice1.setPartDescription( "Yellow Hammer" );
                    ^
    InvoiceTest.java:25: cannot find symbol
    symbol  : method setQuantity(int)
    location: class Invoice
            invoice1.setQuantity( 3 );
                    ^
    InvoiceTest.java:30: operator + cannot be applied to java.lang.String
            System.out.println("Part number: ", + invoice1.getPartNumber() );
                                                ^
    InvoiceTest.java:31: cannot find symbol
    symbol  : method getPartDescription()
    location: class Invoice
            System.out.println("Description: ", + invoice1.getPartDescription() );
                                                          ^
    InvoiceTest.java:31: cannot find symbol
    symbol  : method println(java.lang.String,int)
    location: class java.io.PrintStream
            System.out.println("Description: ", + invoice1.getPartDescription() );
                      ^
    InvoiceTest.java:32: cannot find symbol
    symbol  : method getQuantity()
    location: class Invoice
            System.out.println("Quantity: ", + invoice1.getQuantity() );
                                                       ^
    InvoiceTest.java:32: cannot find symbol
    symbol  : method println(java.lang.String,int)
    location: class java.io.PrintStream
            System.out.println("Quantity: ", + invoice1.getQuantity() );
                      ^
    InvoiceTest.java:33: cannot find symbol
    symbol  : method println(java.lang.String,double)
    location: class java.io.PrintStream
            System.out.println("Price: ", + invoice1.getPricePerItem() );
                      ^
    InvoiceTest.java:34: cannot find symbol
    symbol  : method println(java.lang.String,double)
    location: class java.io.PrintStream
            System.out.println("Invoice amount: ", + invoice1.getInvoiceAmount() );
                      ^
    16 errors

  • Need help about class package

    Hi All,
    I need one help.
    I have one java class under package com.abc and other java class under default package.
    How do I access java class under default package from java class under com.abc package?.
    Waiting for reply.
    Thanks

    Just add default package in your CLASSPATH seting.
    But it is recommened that all classes must belong to any package. You should avoid to use default package.

Maybe you are looking for

  • Difficulty in using a variable to pass a list of names between 2 tables

    Hi All, I am trying to pass a list of names from one table as a variable to another table and trying to find the Highest level they exist at in the hierarchy. I am having some troubles with the variable and need some guidence and also if this should

  • Setting a comma in a dynamic list build

    Hi Guys, can anyone please help me with this issue. I want to take a list and find the last characters in the list and then build another list. With this other list I am having a problem not dropping a comma after the last element. I am expecting thi

  • WRTU54G-TM Printing Problems Help!

    In my router I set it up to be more secure from a WEP Key to WPA2 Personal by doing it this way: Wireless Wireless Security Security Mode: WPA2 Personal WPA Algorithims: TKIP/AES WPA Shared Key: (the password it generated) Group Key Renewal: 3600 sec

  • Calender feature in Journals picks up the day photo uploaded to ipad, not when it was taken.

    So, I was playing around with iPhoto on my iPad, I made a photo journal,  and I put a calender beside a photo, but suprisinly, the calender showed the date the photo was UPLOADED onto my ipad, not when it was taken, which was around october in 2011.

  • SQL Loader newbie's question.

    Hi all, I have a delimiter file, e.g. data.dat, that contains the titles of each of the columns on the first row. Subsequent rows contain real column information/data. I didn't know how to create a control file, e.g. data.ctl, to create the table, it