king420 Posted June 27, 2013 Report Posted June 27, 2013 [quote name='Chinni_' timestamp='1372352054' post='1303896280'] skype lo chusthunnadu.. phn lu chesthunnadu [size=4] ... haapy India podham padha.. [/size] [/quote] Dollar 60 unnappudu flight ticket konna bokke...$650 petti...neneu raanu ...Dollar thaggaka vasta
cherlapalli_jailer Posted June 27, 2013 Report Posted June 27, 2013 100% working and tested code This one works for folder and sub folders too and looks all the files and give the size of biggest file import java.io.File; public class FindBigFile { long tempSize = 0 ; public static void main(String args[]){ String fn = "C:\\Program Files\\Java\\jre7"; FindBigFile ff = new FindBigFile() ; ff.getBigFile(fn); System.out.println("Largest File size is "+ff.tempSize); } public void getBigFile(String folderName){ File folder = new File(folderName); File[] listOfFiles = folder.listFiles(); for (int i = 0; i < listOfFiles.length; i++) { if (listOfFiles[i].isFile()) { String name = listOfFiles[i].getName(); long size = listOfFiles[i].length() ; if(size > tempSize) tempSize = size ; //System.out.println("Size of the file is " +size) ; } else if (listOfFiles[i].isDirectory()) { //System.out.println("Directory " + listOfFiles[i].getName()); getBigFile(folderName+"\\"+listOfFiles[i].getName()); } } } }
cherlapalli_jailer Posted June 27, 2013 Report Posted June 27, 2013 chinni idi malli pampu u will not get this logic in net also so he will get impressed
chinni005 Posted June 27, 2013 Report Posted June 27, 2013 [quote name='cherlapalli_jailer' timestamp='1372352869' post='1303896337'] chinni idi malli pampu u will not get this logic in net also so he will get impressed [/quote] mama
chinni005 Posted June 27, 2013 Report Posted June 27, 2013 [quote name='HAPPYNESS' timestamp='1372352168' post='1303896292'] Dollar 60 unnappudu flight ticket konna bokke...$650 petti...neneu raanu ...Dollar thaggaka vasta [/quote] Assam nenu
king420 Posted June 27, 2013 Report Posted June 27, 2013 [quote name='Chinni_' timestamp='1372353078' post='1303896355'] Assam nenu [/quote] Assam lo airport ledu...Kolkatta velli,,,akkada nundi via road vellu easy avtundi
cherlapalli_jailer Posted June 27, 2013 Report Posted June 27, 2013 [quote name='Chinni_' timestamp='1372353078' post='1303896355'] Assam nenu [/quote] why
innovative Posted June 27, 2013 Report Posted June 27, 2013 [quote name='cherlapalli_jailer' timestamp='1371817154' post='1303876612'] some useful java classes [url="http://algs4.cs.princeton.edu/code/"]http://algs4.cs.princeton.edu/code/[/url] Note: in case if any one download all the classes then pl ZIP and share it if possible [/quote] GP Zip file link kooda ah page lone vundhi kada jailer ..[b][url="http://algs4.cs.princeton.edu/code/algs4.jar"] link[/url][/b]
innovative Posted June 27, 2013 Report Posted June 27, 2013 [quote name='Sinnababu_Sillyfellow' timestamp='1372082536' post='1303883698'] Jailer mama... oka saari itu look vesuko... ee roju Java lo edanna topic nerchukundaamu.... What are the major differences between Java 6 and Java 7? [/quote] Official list of enhancements in Java 7 - From oracle [color=#000000][font=Arial, Helvetica, sans-serif][size=3] The following list contains links to the the enhancements pages in the [url="http://docs.oracle.com/javase/7/docs/"]Java SE 7[/url] guides documentation. Choose a technology for further information.[/size][/font][/color] [list] [*][url="http://docs.oracle.com/javase/7/docs/technotes/guides/swing/enhancements-7.html"]Swing[/url] [*][url="http://docs.oracle.com/javase/7/docs/technotes/guides/io/enhancements.html#7"]IO and New IO[/url] [*][url="http://docs.oracle.com/javase/7/docs/technotes/guides/net/enhancements-7.0.html"]Networking[/url] [*][url="http://docs.oracle.com/javase/7/docs/technotes/guides/security/enhancements-7.html"]Security[/url] [*][url="http://docs.oracle.com/javase/7/docs/technotes/guides/concurrency/changes7.html"]Concurrency Utilities[/url] [*][url="http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/clientJRECapabilitiesCheatSheet.html"]Rich Internet Applications (RIA)/Deployment[/url] [list] [*][url="http://docs.oracle.com/javase/tutorial/deployment/applet/draggableApplet.html#decoration"]Requesting and Customizing Applet Decoration in Dragg able Applets[/url] [*][url="http://docs.oracle.com/javase/tutorial/deployment/deploymentInDepth/embeddingJNLPFileInWebPage.html"]Embedding JNLP File in Applet Tag[/url] [*][url="http://docs.oracle.com/javase/tutorial/deployment/deploymentInDepth/deployingWithoutCodebase.html"]Deploying without Codebase[/url] [*][url="http://docs.oracle.com/javase/tutorial/deployment/applet/appletStatus.html"]Handling Applet Initialization Status with Event Handlers[/url] [/list][*][url="http://docs.oracle.com/javase/7/docs/technotes/guides/2d/enhancements70.html"]Java 2D[/url] [*][url="http://docs.oracle.com/javase/7/docs/technotes/guides/xml/enhancements.html"]Java XML[/url] - JAXP, JAXB, and JAX-WS [*][url="http://docs.oracle.com/javase/7/docs/technotes/guides/intl/enhancements.7.html"]Internationalization[/url] [*][url="http://docs.oracle.com/javase/7/docs/technotes/guides/lang/enhancements.html#7"]java.lang Package[/url] [list] [*][url="http://docs.oracle.com/javase/7/docs/technotes/guides/lang/cl-mt.html"]Multithreaded Custom Class Loaders in Java SE 7[/url] [/list][*][url="http://docs.oracle.com/javase/7/docs/technotes/guides/language/enhancements.html#javase7"]Java Programming Language[/url] [list] [*][url="http://docs.oracle.com/javase/7/docs/technotes/guides/language/binary-literals.html"]Binary Literals[/url] [*][url="http://docs.oracle.com/javase/7/docs/technotes/guides/language/strings-switch.html"]Strings in switch Statements[/url] [*][url="http://docs.oracle.com/javase/7/docs/technotes/guides/language/try-with-resources.html"]The try-with-resources Statement[/url] [*][url="http://docs.oracle.com/javase/7/docs/technotes/guides/language/catch-multiple.html"]Catching Multiple Exception Types and Rethrowing Exceptions with Improved Type Checking[/url] [*][url="http://docs.oracle.com/javase/7/docs/technotes/guides/language/underscores-literals.html"]Underscores in Numeric Literals[/url] [*][url="http://docs.oracle.com/javase/7/docs/technotes/guides/language/type-inference-generic-instance-creation.html"]Type Inference for Generic Instance Creation[/url] [*][url="http://docs.oracle.com/javase/7/docs/technotes/guides/language/non-reifiable-varargs.html"]Improved Compiler Warnings and Errors When Using Non-Reifiable Formal Parameters with Varargs Methods[/url] [/list][*][url="http://docs.oracle.com/javase/7/docs/technotes/guides/vm/"]Java Virtual Machine (JVM)[/url] [list] [*][url="http://docs.oracle.com/javase/7/docs/technotes/guides/vm/multiple-language-support.html"]Java Virtual Machine Support for Non-Java Languages[/url] [*][url="http://docs.oracle.com/javase/7/docs/technotes/guides/vm/G1.html"]Garbage-First Collector[/url] [*][url="http://docs.oracle.com/javase/7/docs/technotes/guides/vm/performance-enhancements-7.html"]Java HotSpot Virtual Machine Performance Enhancements[/url] [/list][*][url="http://docs.oracle.com/javase/7/docs/technotes/guides/jdbc/"]JDBC[/url] [*] [/list] 1
cherlapalli_jailer Posted June 28, 2013 Report Posted June 28, 2013 [quote name='innovative' timestamp='1372373605' post='1303897856'] GP Zip file link kooda ah page lone vundhi kada jailer ..[b][url="http://algs4.cs.princeton.edu/code/algs4.jar"] link[/url][/b] [/quote] oh did not see thanks
Water Posted June 28, 2013 Report Posted June 28, 2013 innna thread [img]http://lh3.ggpht.com/--o7mXz3u-j4/T9VVBGzBJAI/AAAAAAAAGo0/kmj8a1-XW2g/s150/PK-1.gif[/img]
innovative Posted June 28, 2013 Report Posted June 28, 2013 [quote name='cherlapalli_jailer' timestamp='1372377981' post='1303898096'] oh did not see thanks [/quote] np .. You are really doing a great job ..
cherlapalli_jailer Posted June 28, 2013 Report Posted June 28, 2013 [quote name='innovative' timestamp='1372378233' post='1303898114'] np .. You are really doing a great job .. [/quote] r u using maven with eclipse?
innovative Posted June 28, 2013 Report Posted June 28, 2013 [quote name='cherlapalli_jailer' timestamp='1372378312' post='1303898120'] r u using maven with eclipse? [/quote] yes ..
Water Posted June 28, 2013 Report Posted June 28, 2013 meeku javascripting ocha... oka chinna jsp page lo oka change cheyali..
Recommended Posts