Yahoo Answers is shutting down on 4 May 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Lv 1189 points

kundan

Favourite answers33%
Answers6
  • Challenging Mathematics Questions, Decade ago, Yahoo answers?

    I was on yahoo answers a decade ago, After that I went on living my life. During those days, some really challenging mathematical problems (starred or highlighted problems) were addressed her in Yahoo under a separate tag.

    I see no challenging problems sections / starred questions tab anywhere as it used to be a decade ago ?

    Has yahoo removed it, or does it have another method to access ?

    2 AnswersMathematics3 years ago
  • Java Swing : JAR File created but not running?

    Following is the code that i prepared. Financial_GUI is a JFrame type class. There is a main function and this code executes when I run it in bluej --- right click and clicking on void main(String args[]) however, when i create jar file, this does not execute. What could be the reason ??

    import java.awt.event.*;

    public class Financial_creation_Frame extends Financial_GUI

    {

    private static final long serialVersionUID = 2L;

    public Financial_creation_Frame()

    {

    this.delete.setEnabled(false);

    this.register.addActionListener(new ActionListener() {

    public void actionPerformed(ActionEvent ae)

    {

    createRecord();

    }

    });

    }

    public void createRecord()

    {

    Finance fin = new Finance();

    fin.amount = Double.parseDouble(this.amount.getText());

    fin.category = (String) this.category.getSelectedItem();

    fin.description = this.description.getText();

    fin.record_title = this.record_title.getText();

    fin.record_type = (String) this.record_type.getSelectedItem();

    new Financial_Operations().createRecord(fin);

    }

    public static void main(String args[])

    {

    Financial_creation_Frame fs = new Financial_creation_Frame();

    fs.setVisible(true);

    }

    }

    1 AnswerProgramming & Design9 years ago
  • Java Program : Simple recursion : Returning value help !! Please help 10 points?

    Here is the code in which i use the recursion to find a file in a directory and its specified subdirectory. The code actually finds the file but i am having trouble returning the value of the path ! The program returns null ! Help please anyone !

    ------------------------------------------------------------------------------------------

    import java.io.*;

    import javax.swing.*;

    public class searchFile

    {

    public String searchRecord(String id, String path, String value) throws Exception

    {

    File f2 = new File(path);

    File f[] = f2.listFiles();

    for(int i=0; i<f.length; i++)

    {

    if(!f[i].isDirectory())

    {

    if(f[i].getName().equals(id+".data")) {

    JOptionPane.showMessageDialog(null, "The given record is present in the database");

    value = f[i].getPath(); // file is actually searched but how do i return the path ????

    }

    }

    else

    {

    searchRecord(id, f[i].getPath(), value);

    }

    }

    return value;

    }

    }

    1 AnswerProgramming & Design9 years ago
  • spring force -- please clear my doubts?

    consider that a spring, initially at natural length is stretched through distance x cm. Spring constant of spring is k.

    a) what is the work done on the spring by the block.

    b) what is the work done on the block by the spring.

    2 AnswersPhysics9 years ago
  • spring force ! Please clear my doubts?

    consider that a spring, initially at natural length is stretched through distance x cm. Spring constant of spring is k.

    a) what is the work done on the spring by the block.

    b) what is the work done on the block by the spring.

    3 AnswersReligion & Spirituality9 years ago
  • java for school - simple program help please - 10 points confirm?

    You are given natural numbers from 1 to 8. Say, 1,2,3,4,5,6,7,8. Now, write a program that would arrange negative signs in these numbers in such a way that their sum becomes zero [0].

    E.g.

    1 +2 +3 -4 +5 -6 +7 -8 -----------> Here sum of this sequence is 0.

    ------------------------------------------------------------------------------------------------------------

    2 AnswersProgramming & Design9 years ago