Jump to content
Sign in to follow this  
semak

Baru Belajar Java

Recommended Posts

public class Hello
{
public static void main(String[]args)
{
System.out.println("hELLO SYG");
}
}



Aku ni baru je balajar.ni sikit asas aku dapat
sapa leh tambah sikit dengan penerangan kegunaan setiap code ni?

Share this post


Link to post
Share on other sites
[quote name='semak' date='30 September 2010 - 08:49 AM' timestamp='1285807791' post='1049053']
public class Hello
{
public static void main(String[]args)
{
System.out.println("hELLO SYG");
}
}

Aku ni baru je balajar.ni sikit asas aku dapat
sapa leh tambah sikit dengan penerangan kegunaan setiap code ni?
[/quote]

public class Hello <------ public tu modifier / hello ialah nama class
{
public static void main(String[]args) <---main method
{
System.out.println("hELLO SYG"); <---System.out.print ialah utk mengeluarkan output.. cth mcm anda buat..nanti kuar "hELLO SYG"
}
} Edited by masokis

Share this post


Link to post
Share on other sites
[quote name='fiqz4ce' timestamp='1292504945' post='1056728']
slm..
dulu aku ade blajar java.. aku ada slide2 dia.. kau nak tak?
klau nak bgtau aku ;)
[/quote]
salam
aku nk blaja java jgk..ble x share slide tu ngan aku? ;p
tp sblom tu klu ble nk tau pe beza J2ME, J2SE, J2EE ? as a beginner,
mane yg aku ptt start dlu?

thanks

Share this post


Link to post
Share on other sites
[quote name='biskut merry' timestamp='1292683206' post='1056881']
salam
aku nk blaja java jgk..ble x share slide tu ngan aku? ;p
tp sblom tu klu ble nk tau pe beza J2ME, J2SE, J2EE ? as a beginner,
mane yg aku ptt start dlu?

thanks
[/quote]

j2me untuk mobile
j2se untuk desktop
j2ee untuk web application macam jsp , jsf ..
jsf pulak ada banyak framework .. icefaces , richfaces , woodstock , primefaces

Share this post


Link to post
Share on other sites
ade ape thu x nk wt yg ni..


3. You are required to develop a login application which will ask the user for an ID and password. All user ID and passwords will be initialized at the beginning of the program in an array. The accepted user IDs and passwords as follow:

User ID Password
Arel B126
Safuan A650
Nik A343
Vicky C311

You are required to use the following declaration to store both userID and password in memory location. Then initialize each row of the 2D array with the value above.

String userPassword[][]=new String[4][2];

User will be prompt to enter the user ID and password; the application will search through an array of IDs and passwords for verification. The application will display an appropriate message either “Password Granted” or “Access Denied”.

Share this post


Link to post
Share on other sites
[quote name='firshee' timestamp='1301335202' post='1065861']
ade ape thu x nk wt yg ni..


3. You are required to develop a login application which will ask the user for an ID and password. All user ID and passwords will be initialized at the beginning of the program in an array. The accepted user IDs and passwords as follow:

User ID Password
Arel B126
Safuan A650
Nik A343
Vicky C311

You are required to use the following declaration to store both userID and password in memory location. Then initialize each row of the 2D array with the value above.

String userPassword[][]=new String[4][2];

User will be prompt to enter the user ID and password; the application will search through an array of IDs and passwords for verification. The application will display an appropriate message either “Password Granted” or “Access Denied”.
[/quote]

kakak nih soalan assignment ke..??? sila cuba buat dulu.. ada problem leh tanya sini..

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...