-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample.java
More file actions
29 lines (25 loc) · 753 Bytes
/
sample.java
File metadata and controls
29 lines (25 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
public class sample
{
public static void main(String[] args)
{
String firstname = "Carlo";
char MI = 'C';
String lastname = "Mapa";
System.out.println("lastname, firtname, MI: " +lastname + firstname + MI + ".");
System.out.println("firstname, MI, lastname: " +firstname + MI + lastname );
}
}
/*public class sample
{
public static void main(String[] args)
{
int number = 10;
char let = 'A';
double num2 = 2.5;
String name = "Carlo";
System.out.println("Number is " + number);
System.out.println("Letter is " + let);
System.out.println("Float number is " + num2);
System.out.println("Name is " + name);
}
}*/