Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be 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.
capricorn®
What is the basic knowledge requirement for a person wishing to join the Android Development course?
Is advanced java a must?
2 AnswersProgramming & Design10 years agoExtracting "5" from invoice using substring, when converting it into integer using parsing am getting error.?
Error is: java.lang.Integer cannot be cast to java.lang.String
Kindly help! Thanks in advance!
3 AnswersProgramming & Design1 decade agoWhat is SAS 70, Type II Certification?
Please explain in simple terms.Thanks in advance!
2 AnswersOther - Business & Finance1 decade agoWhat is abstract pattern(JAVA)??? Why is it used?
2 AnswersProgramming & Design1 decade agoHow to create a parser in java when the source file is an Excel file?
Is it ok to use hashtable such that the key will be the fieldname and the value of the field is the value.... Any clue as to how to go about it! Thanks in advance!
2 AnswersProgramming & Design1 decade agoError: Cannot convert from Integer[] to Integer?
import java.io.*;
import java.util.*;
import java.lang.*;
public class RuntymMgt
{
public static void main(String args[])
{
Runtime r=Runtime.getRuntime();
long m1=0,m2=0;
// int i[]=new int[1000];
Integer i[]=new Integer[1000];
System.out.println("Total Memory: "+m1);
m1=r.freeMemory();
System.out.println("Initial free memory: "+m1);
r.gc();
m1=r.freeMemory();
System.out.println("Free memory after garbage collection: "+m1);
for(int j=0;j<1000;j++)
i[j]=new Integer[j]; // THIS LINE IS GIVING THE ERROR!
m2=r.freeMemory();
System.out.println("Free memory after allocation: "+m2);
System.out.println("Memory used by allocation: " +(m1-m2));
for(int j=0;j<1000;j++)
i[j]=null;
r.gc();
m2=r.freeMemory();
System.out.println("Free memory after collecting discarded integers"+m2);
}
}
2 AnswersProgramming & Design1 decade agoSove this in detail please If* standsfor /, / stands for -,+ stands for * and -stands for +, then 9/8*7+5-10=?
Options are:
A) 13.3
B) 10.8
C) 10.7
D) 11.4
2 AnswersHomework Help1 decade agoPlease solve these math problems. Thankyou?
1)In a party 10 take only tea 15 take tea and 8 take only coffee then what is the number of persons take either coffee or tea.(nos are not exact).
(2) In a college there are students who can play either football or cricket or both. 500 play cricket 220 play both and 600 play football .what is the total strength of the college.
(3)At an international conference, 100 delegates spoke English, 40 spoke French, and 20 spoke both English and French. How many delegates could speak at least one of these two languages?
(4)In a group of 400 readers who read science fiction or literacy works or both, 250 read science fiction and 230 read literacy works. How many read both science fiction and literacy works?
(5)In town of 500 people, 285 read Hindu and 212 read Indian express and 127read Times of India 20 read hindu and times of India and 29 read hindu and Indian express and 35 read times of India and Indian express. 50 read no news paper. Then how many read only one paper?
1 AnswerMathematics1 decade agoBest time for Pruning Jasmine and curry leaves plant?
3 AnswersGarden & Landscape1 decade agoSocket Programming help !!!?
I need to establish connection with a system, then on that system a program is executed to capture the desktop and that image is sent to me via FTP... now to establish connection m using a TCP program, den for capturing the desktop mhavin code and for sending req for that image i ve a ftp client n server program...can this whole process be done in a single as in one client n one server pgm?
1 AnswerProgramming & Design1 decade agoGeometric Graphics, Shape and Surface Modeling....Need information about two topics...?
Please provide links! Thanks in advance!
1 AnswerProgramming & Design1 decade agoIS digi cam n digitizing camera the sameeeee???!!!?
2 AnswersCameras1 decade agoPlease suggest some technical events for the MCA fest!!!?
Need some really unique events...The usual ones are coding,debugging,web designing...Please help me outttttttttt...Thanks in advance!!!
1 AnswerProgramming & Design1 decade agoWhat is the error here in this java program? Kindly help me!!! THANK YOU!?
import java.awt.*;
import java.applet.Applet;
import java.awt.event.*;
/*
* This displays a framed area. When the user drags within
* the area, this program displays a rectangle extending from
* where the user first pressed the mouse button to the current
* cursor location.
*/
public class RectangleDemo extends Applet
{
SelectionArea drawingPanel;
Label label;
public void init() {
GridBagLayout gridBag = new GridBagLayout();
GridBagConstraints c = new GridBagConstraints();
setLayout(gridBag);
drawingPanel = new SelectionArea(this);
c.fill = GridBagConstraints.BOTH;
c.weighty = 1.0;
c.gridwidth = GridBagConstraints.REMAINDER; //end row
gridBag.setConstraints(drawingPanel, c);
add(drawingPanel);
label = new Label("Drag within the framed area.");
c.fill = GridBagConstraints.HORIZONTAL;
c.weightx = 1.0;
c.weighty = 0.0;
gridBag.setConstraints(label, c);
add(label);
drawingPanel.setVisible(true);
validate();
}
public void paint(Graphics g){
drawingPanel.repaint();
}
public void update(Graphics g){
paint(g);
}
}
3 AnswersProgramming & Design1 decade agoWhats the output of this java program?Please explain it..?
prgname: Inflate.java
import java.io.*;
import java.util.*;
public class InflateTime
{
public static void main(String [] args)
{
String filename = "time.txt";
/*if(args.length > 0)
{
filename = args[0];
}*/
PersistentTime t = null;
FileInputStream fis = null;
ObjectInputStream in = null;
try
{
fis = new FileInputStream(filename);
in = new ObjectInputStream(fis);
t = (PersistentTime)in.readObject();
in.close();
}
catch(IOException ex)
{
ex.printStackTrace();
}
catch(ClassNotFoundException ex)
{
ex.printStackTrace();
}
// print out restored time
System.out.println("Flattened time: " + t.getTime());
System.out.println();
// print out the current time
System.out.println("Current time: " + Calendar.getInstance().getTime());
}
}
Prgname:Flatten.java
import java.io.*;
import java.util.Date;
import java.util.Calendar;
class PersistentTime implements Serializable
{
private Date time;
PersistentTime()
{
time = Calendar.getInstance().getTime();
}
public Date getTime()
{
return time;
}
}
public class Flatten
{
public static void main(String [] args)
{
PersistentTime t=new PersistentTime();
try
{
FileOutputStream fs=new FileOutputStream("time.txt");
ObjectOutputStream os=new ObjectOutputStream(fs);
os.writeObject(t);
os.close();
}
catch(Exception e)
{}
}
}
on running Inflatetime.java an output comes which aint that clear pls explain this prgm to me...THANKS A TON...!!!
1 AnswerProgramming & Design1 decade agoPls tell me some applications of Vector interface (COLLECTIONS) of JAVA..PLSSSS..?
Thanks a ton in advance...
1 AnswerProgramming & Design1 decade agoPlease help me with this JAVA Program friendsssss.....?
this program is giving an error..what needs to be corrected pls temme..THANQ...
1 AnswerProgramming & Design1 decade ago