Java Programming Corner! - PINOYDEN


Go Back   PINOYDEN > PC Zone > Programming

Welcome to PinoyDen Forums.

You are currently browsing our forum as a guest, please consider registering to get full access to all of our forum features, download free games, get help for your pc and cellphone problems and learn new mobile tricks like how to browse the internet using your cellphone for free. All that and more, so what are you waiting for, JOIN us now!!!! Click here to register...
 Topic: Java Programming Corner!  (Read 1676 times)
0 Members and 1 Guest are viewing this topic.
Pages: [1] 2 3 4   Go Down
11-16-12 09:53 AM
  • Semi-Newbie
  • *
  • Male Offline
 
Posts: 41
Thank You: 10
Reputation: 0
tabs5894 has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
Welcome po Java Programmers!

Dito po tayo mag usap usap tungkol sa java programming
willing po ako tumulong hindi mag spoon feed, at syempre mag patulong narin

post nyo lang dito mga assignment/projects or kung ano payan basta relate sa java
try ko kayo i-help at yung mga gusto rin mag share ng knowledge nila
sa java programming welcome po
Reply #1
11-17-12 04:58 PM
  • Jr. Member
  • **
  • Offline
 
Posts: 143
Thank You: 5
Reputation: 0
sisboom has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
sir pano ba gumamit ng switch and case sa java kase newbie lang ako eh.
Reply #2
11-17-12 05:23 PM
  • Semi-Newbie
  • *
  • Male Offline
 
Posts: 41
Thank You: 10
Reputation: 0
tabs5894 has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
Eto bro basahin mo na lang para mas maintindihan mo
Switch Case Tutorial
Reply #3
11-17-12 07:46 PM
  • Full Member
  • ***
  • Offline
 
Posts: 1075
Thank You: 14
Reputation: 0
globibo has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
Pa share naman po ng gamit mong software sa java programming po.

Edit.
Nalilito po ako di ko alam kung saan ko mag sisimula para matutu ng java prog.
Reply #4
11-17-12 11:22 PM
  • Semi-Newbie
  • *
  • Male Offline
 
Posts: 41
Thank You: 10
Reputation: 0
tabs5894 has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
@globibo
Kailangan mo ng

Java Development Kit : eto yung magiging compiler mo.
Eclipse: eto yung magiging IDE mo dito ka mag write ng codes.

At syempre kailangan mo ng tutorial. simply go to Google.com
Reply #5
11-18-12 08:42 AM
  • Full Member
  • ***
  • Offline
 
Posts: 2254
Thank You: 106
Reputation: 2
cruxi4allv2 has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
switch/case statement ,conditional statement yan,parang if and else din ang pinagkaiba lang ang case ay mga posible result na galing sa switch.. At syempre switch is a loop, so you need to use break; to stop the loop..
Example
switch(x+y){
  case 96;
    System.out.println("this is the number");
    break;
  case 95;
    System.out.println("wrong number");
  break;
  }
 Ayan..
Kapag ang
int x; and int y; mo mag eequal sila sa 96 .. Lalabas yung gotcha,
At pag 95 naman lumabas yung wrong naman..
Kung tatranslate mo in if and else yan ganto yan
if((x+y)==96){
  System.out.println("gotcha!");
}else if((x+y)==95){
  System.out.println("Wrong number");
}
Ganyan sya..
Ano mas madaling itype yung switch statement o yung if and else? Switch statement diba?
Reply #6
11-20-12 01:23 AM
  • Banned
  • Semi-Newbie
  • *
  • Male Offline
 
Posts: 47
Thank You: 55
Reputation: 0
jahrakal has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
Mag google na lang kayo dami na advance sa labas
Reply #7
11-25-12 10:30 PM
  • Newbie
  • Offline
 
Posts: 4
Thank You: 0
Reputation: 0
bench1203 has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
papaano po gumawa ng tictactoe sa black screen po using 2 dimensional array
Reply #8
11-25-12 10:58 PM
  • Sr. Member
  • ****
  • Female Offline
 
Posts: 6989
Thank You: 750
Reputation: 12
1behindbars has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
Quote:
Originally Posted by : jahrakal on 11-20-12 01:23 AM
Mag google na lang kayo dami na advance sa labas
everything starts from the basic. Kahit gano ka advanced binabasa mo, babalik ka pa din sa simula. Parang tayo lang, gustong alamin pano nagsimula ang lahat.. Support ako sa thread na ito
Reply #9
11-25-12 11:26 PM
  • Semi-Newbie
  • *
  • Male Offline
 
Posts: 41
Thank You: 10
Reputation: 0
tabs5894 has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
Quote:
Originally Posted by : bench1203 on 11-25-12 10:30 PM
papaano po gumawa ng tictactoe sa black screen po using 2 dimensional array


Una sa lahat paki tingnan muna ito...
ngayon kung binasa mo yan mapapansin mo meron lang 3rows at 3columns,
yung declaration nang array mo syempre ganito

Object arr[][] = new Object[3][3];

so ayan may paglalagyan ka na ng mga inputs, ngayon pano naman natin malalaman kung meron nang winner?
ganito naman yan sa tic tac toe diba dapat ma complete mo yung isang path na same element bago ka maging winner
ang gagawin mo che-check mo lang yung mga pattern or path na yun (vertical, horizontal or diagonal paths)

e.g.
arr[0][0]
arr[0][1]
arr[0][2]

^ horizontal path... kung yung laman na element nang path na yan ay magkakaparehas meaning meron kanang winner.

na ge-gets mo ba yung logic? i-che-check mo lang yung lahat na possible path..
Reply #10
11-26-12 08:52 AM
  • Newbie
  • Offline
 
Posts: 4
Thank You: 0
Reputation: 0
bench1203 has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
saan po mag scan para sa player ?
medyo gets ko na logic niya , kaso po hindi ko pa alam kung pa paano mag input

maraming salamat
Reply #11
11-26-12 03:04 PM
  • Full Member
  • ***
  • Male Offline
 
Posts: 1193
Thank You: 236
Reputation: 12
jamsubzero has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
Quote:
Originally Posted by : cruxi4allv2 on 11-18-12 08:42 AM
switch/case statement ,conditional statement yan,parang if and else din ang pinagkaiba lang ang case ay mga posible result na galing sa switch.. At syempre switch is a loop, so you need to use break; to stop the loop..

HINDI po loop ang switch..
ang break ay para itigil yung execution at hindi mainclude yung next case..
Reply #12
11-26-12 05:51 PM
  • Full Member
  • ***
  • Offline
 
Posts: 2254
Thank You: 106
Reputation: 2
cruxi4allv2 has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
Quote:
Originally Posted by : jamsubzero on 11-26-12 03:04 PM
HINDI po loop ang switch..
ang break ay para itigil yung execution at hindi mainclude yung next case..
Nope , ang switch ay third party script . Na nabuo sa basic script , at loop po talaga sya pero inidentify lang sya as conditional script,
Actually ang execution ng switch() ay while() loop tapus if,else if and else ang case,default ,
para mas madaling itype gumawa ng paraan ang mga php,java,c+,js,etc para gawing simple ang lahat kaya nagawa ang switch and case.

It is base on php history ..

Pero di naman ako nakikipagdebate kaya wag na to pahabain pa.. I continue nyo nalang discussion nyo
Reply #13
11-26-12 07:05 PM
  • Semi-Newbie
  • *
  • Male Offline
 
Posts: 41
Thank You: 10
Reputation: 0
tabs5894 has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
Quote:
Originally Posted by : bench1203 on 11-26-12 08:52 AM
saan po mag scan para sa player ?
medyo gets ko na logic niya , kaso po hindi ko pa alam kung pa paano mag input

maraming salamat


Ngek bakit kayo pagagawin ng console game kung hindi ka marunong mag accept nang inputs?
pakibasa muna ang Scanner

--

Ngayon pag marunong kana ganito gawin mong diskarte sa pag fill nang path sa pag accept ng input
e.g

Player1
Row: getInput
Column: getinput

Player2
Row: getInput
Column: getinput

and so on.. so forth hanggang sa macatch mo na meron nang winner.
Reply #14
11-26-12 10:33 PM
  • Newbie
  • Offline
 
Posts: 4
Thank You: 0
Reputation: 0
bench1203 has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
marunong po ako maginput nalilito lang po ako kung san po ako magsscan for players panu sila magwowork
Pages: [1] 2 3 4   Go Up
 


Related Topics
Subject Started by Replies Views Last post
[HELP] java programming!!!!!!!!! please
Programming
mong_mong 1 476 Last post 03-13-10 08:32 AM
by jamsubzero
Java programming help
Programming
reyn22 14 488 Last post 12-11-10 07:51 PM
by darkshow
[TUT] java programming please help me
Programming
dasigan 6 414 Last post 12-08-12 07:39 AM
by luvnheyt
[HELP] Java Programming
Programming
mardzx 0 237 Last post 07-23-11 07:22 PM
by mardzx
[help] Java Programming
Programming
Roldan08 0 225 Last post 09-20-11 12:07 PM
by Roldan08

All dates are GMT+8:00. The date now is 06-20-13 08:47 AM
WWW.PINOYDEN.COM.PH does not store any files on it's server, we are just indexing other sites contents!
WWW.PINOYDEN.COM.PH [Ang Tambayan ng pinoy!] © copyright 2008-2009 All Rights Reserved.
Contents published on www.PinoyDen.com.ph requires permission for reprint.

Page created in 0.21 seconds with 22 queries.