[VIEWED 8041
TIMES]
|
SAVE! for ease of future access.
|
|
|
thankeshwor
Please log in to subscribe to thankeshwor's postings.
Posted on 09-02-20 8:24
AM
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
consider an example : public class MyClass { private int myProperty; public void setMyProperty(int value) { myProperty = value; } public int getMyProperty() { return myProperty; } } This is the same thing in C#: public class MyClass { public int MyProperty {get; set;} }
|
|
|
|
Hawagiri02
Please log in to subscribe to Hawagiri02's postings.
Posted on 09-02-20 4:36
PM [Snapshot: 91]
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
Try using Lombok you can write same code like this in java: @Getter @Setter public class MyClass { private int myProperty; }
|
|
|
deepocean
Please log in to subscribe to deepocean's postings.
Posted on 09-02-20 9:00
PM [Snapshot: 184]
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
LOL Java and C# is similar Python is different
|
|
|
thankeshwor
Please log in to subscribe to thankeshwor's postings.
Posted on 09-08-20 6:03
AM [Snapshot: 454]
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
|
|
|
AeX5m7zBC6jf4Z
Please log in to subscribe to AeX5m7zBC6jf4Z's postings.
Posted on 09-22-20 2:09
AM [Snapshot: 670]
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
I prefer Javaskript, much simpler objects var myClass = {myproperty: "name-here" };
|
|
|
Nepali-IN-USA
Please log in to subscribe to Nepali-IN-USA's postings.
Posted on 09-22-20 3:58
PM [Snapshot: 793]
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
Slight variation to one of the above responses: @Data public class MyClass { private int myProperty; }
|
|
|
tps2gc
Please log in to subscribe to tps2gc's postings.
Posted on 09-23-20 7:47
AM [Snapshot: 941]
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
to print ' hello world' yo have to go though a long syntax public static void main(String ... args) { System.out.println(randomString(-229985452)+' '+randomString(-147909649)); } public static String randomString(int seed) { Random rand = new Random(seed); StringBuilder sb = new StringBuilder(); for(int i=0;;i++) { int n = rand.nextInt(27); if (n == 0) break; sb.append((char) ('`' + n)); } return sb.t0script(); }
|
|
|
Hawagiri02
Please log in to subscribe to Hawagiri02's postings.
Posted on 09-23-20 6:37
PM [Snapshot: 1003]
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
Try this:- System.out.println("Hello World");
|
|
|
tps2gc
Please log in to subscribe to tps2gc's postings.
Posted on 09-23-20 7:48
PM [Snapshot: 1030]
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
Things now much more simpler than it used to be .
|
|
|