Tuesday, September 15, 2009

JAVA - First lesson in 2nd Tri



Hi! its another blog! YAHOO!
the first Topic is:
JAVA
Its a programming language that we're going to used for us to made programs all over the computer world, it is only one of the many tools that can be used, but this is the most widespread.
according to WIKIPEDIA
The language derives much of its syntax from C and C++ but has a simpler object model and fewer low-level facilities.

according to JAVA website
Java powers more than 4.5 billion devices including:
  • 800+ million PCs
  • 2.1 billion mobile phones and other handheld devices (source: Ovum)
  • 3.5 billion smart cards
  • Set-top boxes, printers, Web cams, games, car navigation systems, lottery terminals, medical devices, parking payment stations, and more.
// from PCs to mobile phones, smart cards etc. really java have many importance and we'll learn it as we goon;-)

Then in the class we talked about:
(WELCOME TO PILIPINO ZONE)
for me as what ive understand ito yung format in doing JAVA source code.
begin tayo sa ex: Print out "hello world"
gawa muna tayo ng flow chart(<-?) for us to analyze ung proble

for our problem
this is our FlowChart -->
(hope you can understand, its too small and rush*-*)
Have a look in our FC
  • START/END- have you seen it?, its is shape as rounded rectangle (you can also use circle, oval or oblong), this shape is used when we are going to start or end a program.
  • ARROWS- for us to understand kung saan na ba tayo papunta, tells what is the next step, first, second and so on. this are the arrows.
  • PARALLELOGRAM- Input/ Output, based sa problem given "kailangan nating mag output ng HELLO WORLD". since ang parallelogram represents I/O ito ung gagamitin nating shape..
  • END - the same as start.
//for more questions in Algorithms ask me through comments or read this ***

NOw, naanalyze na ung problem with the used of Flow chart, nlaman natin kung anu ung iaaouput, and now where going with the source code.

Public class HelloWorld //name of the class, starts w/ a CAPS letter, no spaces included, in case of 2 words CAPS the first letter of the second word and so on.
{
public static void main (string []args) //system used
{
system.out.println ("Hello World") //tells to print "hello world in the screen.
}
}

its done!, Hindi ko pa to natatry sa editor ng JAVA and I dont have any clue on how it looks like.
ito muna for now, hindi ko pa to masyadong alam... I need to feed my mind first..

ITECH dictionary
  • userdefine = defined/given/change by the user.
  • PDLC = Program Development Cycle
Save on MINd
  • Saving your program in JAVA should follow the name of your class followed by a .java extension name. EX. Public class Name save as Name.java *_*
"TECHNOLOGY is PROGRESSING every second, dont stop learning "



0 comments:

Post a Comment