The Java School

The Java School DreamTeam academy of ICT and design All about java ....

25/03/2015

GENBEA00051*GENBEA00051 KOYO 6309
GENBEA00356*GENBEA00356 KOYO 6309zz
GENBEA0239*GENBEA0239 KOYO 6310
ENBEA00089*ENBEA00089 MALEX 30205

ඉහත උදාහරනයේ පරිදි අපිට list එකක් ලැබෙනවා. මෙතන තියෙන්නේ
lines 5 වුනාට අපිට 10000 වැඩිය ලැබෙන්න පුලුවන්. එහෙම වෙලාවට එක එක line එකෙන් line එක ඇතුල් කරනවාද DB එකට නැත්තම් පුන්චි කෝඩ් එකකින් වැඩේ ඉක්මනට කරගන්නවද? එකින් එක ඇතුල් කරන්න නම් ඉතින් Developers ලා ඔනෙ නෑනෙ.
උදාහරනයකට එකක් ගමු.
GENBEA00051*GENBEA00051 KOYO 6309
මෙහි GENBEA00051 යනු
Item Code එකයි.
GENBEA00051 KOYO 6309 යනු භාන්ඩයේ නමයි. ඔය දෙක වෙන් කිරීම සදහා * භාවිතා කරනවා. (මේ වෙනුවට වෙනත් symbol එකක් භාවිතා කරන්න පුලුවන්...)
දැන් කොහොමද මේදිග නමින් Item Code එකයි Item Name එකයි වෙන් කරලා එකම වතාවට DB එකකට ඇතුල් කරන්නේ.
පහතින් තියෙන්නේ කරන විදිහ.. JAvaවලත් වැඩි වෙනසක් නෑ....එකම Syntax
මේක ලියලා තියෙන්නේ PHP වලින

$myFile = './files/items.txt';//ෆයිල් එකේ නම
$fh = fopen($myFile, 'r');//ෆයිල් එක ඕපන් කරගන්නවා
while (fread($fh, '1')) {// fread('', ''')කියන මෙතඩ් එක ලූප් එකකට දානවා
$theData = fgets($fh);
$theData_itemcode = stristr($theData, "*", "*");// * ලකුනට මෙහායින් ඇති Item Code එක වෙන් කරගන්නවා
echo $theData_itemcode;
echo'';
$theData_itemName = stristr($theData, "*");
$theData_itemName=str_replace('*', '', $theData_itemName);// * ලකුන ඉවත් කර ඉන් එහායින් අති Item Name එක වෙන් කරගන්නවා
echo $theData_itemName;
echo'';

fclose($fh);

27/02/2015

This original rap music video made for JavaOne 2011 celebrates the "Java Life". Dedicated to the developer homies everywhere who code hard day and night. Thi...

16/02/2015

Java 8 with Lambda Expressions

Java SE 8: Lambda Quick Start Overview Purpose This tutorial introduces the new lambda expressions included in Java Platform Standard Edition 8 (Java SE 8). Time to Complete Approximately 1 hour Introduction Lambda expressions are a new and important feature included in Java SE 8. They provide a cle…

07/05/2014
Java Is Found Everywhere
13/08/2013

Java Is Found Everywhere

8. Tomcat & Ant FounderJames Duncan Davidson, while he was software engineer at Sun Microsystems (1997–2001), created To...
25/07/2013

8. Tomcat & Ant Founder

James Duncan Davidson, while he was software engineer at Sun Microsystems (1997–2001), created Tomcat Java-based web server, still widely use in most of the Java web projects, and also Ant build tool, which uses XML to describe the build process and its dependencies, which is still the de facto standard for building Java-based Web applications.

James Duncan Davidson (born July 29, 1970 in Lubbock, Texas) is an American photographer and former software developer. While a software engineer at Sun Microsystems (1997–2001), Davidson created Tomcat, a Java‐based webserver application and the Ant Java‐based build tool.

7. Test Driven Development & JUnit FounderKent Beck, creator of the Extreme Programming and Test Driven Development soft...
23/07/2013

7. Test Driven Development & JUnit Founder

Kent Beck, creator of the Extreme Programming and Test Driven Development software development methodologies. Furthermore, he and Erich Gamma created JUnit, a simple testing framework, which turn into the de facto standard for testing Java-based Web applications. The combine of JUnit and Test Driven Development makes a big changed on the way of coding Java, which causes many Java developers are not willing to follow it.

Kent Beck is an American software engineer and the creator of the Extreme Programming[1] and Test Driven Developmentsoftware development methodologies, also named agile software development. Beck was one of the 17 original signatories of the Agile Manifesto in 2001.[1]

6. Java Collections FrameworkJoshua Bloch, led the design and implementation of numerous Java platform features, includi...
17/07/2013

6. Java Collections Framework

Joshua Bloch, led the design and implementation of numerous Java platform features, including JDK 5.0 language enhancements and the award-winning Java Collections Framework. In June 2004 he left Sun and became Chief Java Architect at Google. Furthermore, he won the prestigious Jolt Award from Software Development Magazine for his book, “Effective Java”, which is arguably a must read Java’s book.

Joshua J. Bloch (born August 28, 1961) is a software engineer, formerly employed at Google, and a technology author. He led the design and implementation of numerous Java platform features, including the Java Collections Framework, the java.math package, and the assert mechanism.[1] He is the author...

5. JBoss FounderMarc Fleury, who founded JBoss in 2001, an open-source Java application server, arguably the de facto st...
16/07/2013

5. JBoss Founder

Marc Fleury, who founded JBoss in 2001, an open-source Java application server, arguably the de facto standard for deploying Java-based Web applications. Later he sold the JBoss to RedHat, and joined RedHat to continue support on the JBoss development. On 9 February 2007, he decided to leave Red Hat to pursue other personal interests, such as teaching, research in biology, music and his family.

Marc Fleury Wiki--http://en.wikipedia.org/wiki/Marc_Fleury
JBoss Application Server--http://www.jboss.org/overview/

4. Struts FounderCraig Mcclanahan, creator of Struts, a popular open source MVC framework for building Java-based web ap...
15/07/2013

4. Struts Founder

Craig Mcclanahan, creator of Struts, a popular open source MVC framework for building Java-based web applications, which is arguably that every Java developer know how to code Struts. With the huge success of Struts in early day, it’s widely implemented in every single of the old Java web application project.

Craig R. McClanahan is a programmer and original author of the Apache Struts framework for building web applications. He was part of the expert group that defined the servlet 2.2, 2.3 and JSP 1.1, 1.2 specifications. He is also the architect of Tomcat's servlet container Catalina.

Address

Kurunegala
60000

Alerts

Be the first to know and let us send you an email when The Java School posts news and promotions. Your email address will not be used for any other purpose, and you can unsubscribe at any time.

Share