Serving the Quantitative Finance Community

 
User avatar
Piyushbhatt
Topic Author
Posts: 5
Joined: July 8th, 2022, 5:14 am

Python tricks that can be used in java

July 8th, 2022, 9:23 am

The little things in python that I love, I'm unfamiliar how to do them in java and I would appreciate any help.

string equivalence: 

Hello in hello123 would print true, but in java I only know of .equals(), not in.

Is there any way to obtain all java methods that can be used on a string, in python, you can just type help(list), and it will tell you everything you can do to lists that are inbuilt.
Hi, I’m Piyush. I’m a Computer Science and Engineering graduate who is passionate about programming and technology. I found this forum in hopes of learning something valuable in programming.
 
User avatar
Cuchulainn
Posts: 20250
Joined: July 16th, 2004, 7:38 am
Location: 20, 000

Re: Python tricks that can be used in java

July 8th, 2022, 2:50 pm

Never mix your languages.
CS graduate??