Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package mattroseb8wk1;
- public class Day05B {
- public static void main(String[] args) {
- String txt1 = "Carrot";
- String txt2 = "Repolyo";
- String txt3;
- char ch1 = 's';
- char ch2 = 'u';
- char ch3 = 'b';
- double num1 = 6.89;
- float num2 = 32.44f;
- byte num3 = 12;
- int num4 = 42;
- System.out.println("txt2");
- System.out.println(txt2);
- System.out.println(txt1 + txt2);
- System.out.println("salita"+txt1);
- System.out.println(txt2+45);
- System.out.println(ch1+ch2+ch3);
- System.out.println(ch1+""+ch2+""+ch3);//di na sya pwede mag imagine na number yung char
- txt3 = "I have no mouth but I must scream";
- System.out.println(txt3);
- System.out.println(num1 + num2 + num3 + num4);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment