• Register

Recent questions tagged java

0 votes
1 answer 3 views
Problem: Hi! I am new to the world of programming. My teacher gave me an assignment in which she has asked us to guess what -(-(-(-2))) will result? As far as I know, if mathematics works the same in programming, it will result in +2. But, I want to see the proof with the program. Could someone here please help me solve this? I would be grateful.
asked 1 hour ago Code Learner 5.2k points
0 votes
1 answer 3 views
Problem Hey, I need help from you. Is there any way to call python from java. I mean how can we run a python program from java.
asked 2 hours ago chris jordan 2.2k points
0 votes
1 answer 5 views
Problem: Hello! I recently attempted a quiz on programming, which was required for an internship. I do not have much experience in the field of computer programming. There was a question in the quiz that puzzled me: “A java program must have at least one ... c. Could anyone from here please tell me whether my answer was correct or not. Moreover, please explain the correct answer. Thanks!
asked 19 hours ago Code Learner 5.2k points
0 votes
1 answer 2 views
Problem
asked 2 days ago alexh 2.2k points
0 votes
1 answer 6 views
Problem: Hello! I want to learn to program. I have no previous experience with programming or computers. I discussed with some experienced programmers about which language to learn. Some of them suggested starting with Java, while others suggested C++, and ... and JavaScript. Could anybody here tell me the difference between both? Moreover, what if I start learning programming from JavaScript?
asked 4 days ago Code Learner 5.2k points
0 votes
1 answer 7 views
Problem: I just recently started learning inheritance in Java. I am a bit confused between method overloading and method overriding. If two classes have same method with different number of arguments, given that the classes have parent-child relationship, will it be overloading or overriding? Moreover, when does the overloading occurs in inherited classes?
asked Jan 8 Code Learner 5.2k points
0 votes
1 answer 4 views
Problem: Hi there! I want to know how I can find the ASCII value of a character in Java using the program. Also, what if I have a string and I want to convert that entire string to ASCII? Kindly answer with programs. Thanks!
asked Jan 8 Code Learner 5.2k points
0 votes
1 answer 5 views
Problem: Hi there! I just got an assignment in which I had to remove the first and last character from a string in Java. I did the task using substrings. I want to know what the simplest way is to do so? Also, mention other alternatives to using the substring method. Thanks!
asked Jan 8 Code Learner 5.2k points
0 votes
1 answer 4 views
Problem: Hello Programmers! I am a Java programmer with little experience. I took an online test recently in which, I had to write a Java program the reverses the words in a string. For example, if a string is “This is a String”, it should be reversed as ... . So, I did not attempt the question. Now, I want help from any of you who could provide me the code with detailed comments.
asked Jan 8 Code Learner 5.2k points
0 votes
1 answer 9 views
Problem: Hello Kodlogs! I am a beginner and started learning programming through an online course. In course, I am given an assignment in which I have to write a program that will count the occurrence of each character in a string and then print the number of ... with detailed comments so that I can understand the logic and program? The given string is: “This is an assignment”. Thanks!
asked Jan 6 Code Learner 5.2k points
0 votes
1 answer 6 views
How can I achieve this?
asked Jan 5 TeamScript 9.2k points
0 votes
1 answer 4 views
Can anyone solve this?
asked Jan 5 TeamScript 9.2k points
0 votes
1 answer 3 views
I would appreciate any input/advice!
asked Jan 5 TeamScript 9.2k points
0 votes
1 answer 7 views
0 votes
1 answer 6 views
How I will solve this?
asked Jan 5 TeamScript 9.2k points
0 votes
1 answer 6 views
0 votes
1 answer 4 views
Why is Eclipse not detecting the main class in this case?
asked Jan 5 TeamScript 9.2k points
0 votes
1 answer 4 views
Thank you in advance for any help?
asked Jan 5 TeamScript 9.2k points
0 votes
1 answer 4 views
Solve this.
asked Jan 5 TeamScript 9.2k points
0 votes
1 answer 6 views
unfortunately, it giving exceptions pls help me.
asked Jan 5 TeamScript 9.2k points