This document contains configuration files and source code for a Java project called R416. It includes the build file that compiles and tests the project, the main Java source file containing a class with a main method, and NetBeans project files that contain build settings and properties for the project. The main method in the R416 class calculates an approximation of pi by computing successive terms of a power series and printing each term.
Generated by CamScanner from intsig.comR416build.xml.docx
1. Generated by CamScanner from intsig.com
R416/build.xml
Builds, tests, and runs the project R416.
R416/build/classes/.netbeans_automatic_build
R416/build/classes/.netbeans_update_resources
R416/build/classes/r416/R416.classpackage r416;
publicsynchronizedclass R416 {
public void R416();
publicstatic void main(String[]);
}
R416/manifest.mf
Manifest-Version: 1.0
X-COMMENT: Main-Class will be added automatically by build
R416/nbproject/build-impl.xml
2.
3.
4.
5.
6.
7. Must set src.dir
Must set test.src.dir
Must set build.dir
Must set dist.dir
Must set build.classes.dir
Must set dist.javadoc.dir
Must set build.test.classes.dir
Must set build.test.results.dir
Must set build.classes.excludes
Must set dist.jar
28. To run this application from the command line without
Ant, try:
java -cp "${run.classpath.with.dist.jar}" ${main.class}
29. To run this application from the command line without
Ant, try:
java -jar "${dist.jar.resolved}"
Must select one file in the IDE or set run.class
30. Must select one file in the IDE or set run.class
Must select one file in the IDE or set debug.class
Must select one file in the IDE or set debug.class
Must set fix.includes
31. This target only works when run from inside the NetBeans
IDE.
Must select one file in the IDE or set profile.class
This target only works when run from inside the NetBeans
IDE.
This target only works when run from inside the NetBeans
IDE.
33. Must select one file in the IDE or set run.class
Must select some files in the IDE or set test.includes
Must select one file in the IDE or set run.class
Must select one file in the IDE or set applet.url
36. Some tests failed; see details above.
Must select some files in the IDE or set test.includes
Some tests failed; see details above.
Must select some files in the IDE or set test.class
Must select some method in the IDE or set test.method
Some tests failed; see details above.
Must select one file in the IDE or set test.class
Must select one file in the IDE or set test.class
37. Must select some method in the IDE or set test.method
Must select one file in the IDE or set applet.url
Must select one file in the IDE or set applet.url
38.
39. R416/nbproject/genfiles.properties
build.xml.data.CRC32=abc668bb
build.xml.script.CRC32=f19ab147
[email protected]
# This file is used by a NetBeans-based IDE to track changes in
generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will
never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=abc668bb
nbproject/build-impl.xml.script.CRC32=e202bad3
nbproject/[email protected]
R416/nbproject/private/private.properties
compile.on.save=true
user.properties.file=C:UserspoopeAppDataRoamingNetB
eans7.3.1build.properties
R416/nbproject/private/private.xml
45. */
publicstaticvoid main(String[] args){
int n=1;
double x=0;
double s=1;
while(s>0.01){
s=1.0/(1+n*n);
n++;
x=x+s;
System.out.println(s);
}
}
}
Generated by CamScanner from intsig.com
Generated by CamScanner from intsig.com
Generated by CamScanner from intsig.com
Generated by CamScanner from intsig.com
Generated by CamScanner from intsig.com