Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package mattroseb8wk3;
- public class Day15A {
- public String txt1 = "shenanigans";
- public static void main(String[] args) {
- Day15A callMe1 = new Day15A();
- Day15A callMe2 = new Day15A();
- callMe1.method1();
- callMe1.method1();
- callMe2.txt1 = "Absolute";
- System.out.println(callMe1.txt1);
- System.out.println(callMe2.txt1);
- method2();
- method2();
- }
- public void method1() {
- System.out.println("I am called from method1");
- }
- public static void method2() {
- System.out.println("Greetings from static method2");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement