0% found this document useful (0 votes)
206 views1 page

03 ELMS Activity 1

This Java code defines a class called Activity that contains a main method to print out a last name, middle name, favorite number, and favorite anime character. It uses string, char, and int variables to store and print the last name "Deocades", middle name "nonanala" made up of individual char variables, favorite number 18 as an int, and favorite anime character "azusagawa sakuta" as a string.

Uploaded by

Deocades Dexin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
206 views1 page

03 ELMS Activity 1

This Java code defines a class called Activity that contains a main method to print out a last name, middle name, favorite number, and favorite anime character. It uses string, char, and int variables to store and print the last name "Deocades", middle name "nonanala" made up of individual char variables, favorite number 18 as an int, and favorite anime character "azusagawa sakuta" as a string.

Uploaded by

Deocades Dexin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Hi sir I can pass now the 03 eLMS Activity 1 – ARG

//*03 eLMS Activity 1 -


ARG*//
public class Activity {

// this is the first name


and last name using
string
public static void
main(String args[]) {
//this is favourite
number using int

System.out.println("Las
t Name:Deocades");

//this is the middle


name using char
char mi = 'n';
char mi1 = 'o';
char mi2 = 'n';
char mi3 = 'a';
char mi4 = 'l';
char mi5 = 'a';
String s = "Middle
Name:" + mi + mi1 +
mi2 + mi3 + mi4 + mi5;

System.out.println(s);

//this is favourite
number using int
int num = 18;
String fav =
"favourite number:" +
18;
System.out.println(fav);

//this is favourite
anime using string
String anime =
"favorite anime
character:azusagawa
sakuta";

System.out.println(ani
me);

System.out.println("......
....................*@@
&@@
");

You might also like