exception tag

51 questions


1 answers
105 views
0
I don't know how to resolve Java NullPointerException.

Using a generic stack, you are writing a code that converts a median expression to a posterior expression, then outputs an expression, and then outputs an answer, but the expression is still printed d...


1 answers
55 views
0
Main function Sub function and Exception

Hello.I have a question while working on the Python code, but I'm uploading it here because it's not told in textbooks or lectures. I need your help.As shown below, func1 and func2 are all surrounded ...

2 years ago

1 answers
83 views
0
[Android] How to handle exceptions when the socket connection fails in the app

Hello, I'm developing a client app.It is developed so that data transmission can be made through a socket connection from an app to a specific server.However, even though the data signal strength and ...


2 answers
127 views
0
Java Index 1 out of bounds for length 1 error question.

12345678 1 lee1 010-1231-5678 // 11345678 2 lee2 010-1232-5678 ......An example of reading a file with these characters, separating it into objects, and storing them as files.But you have to separate ...


1 answers
113 views
0
Do I have to make an exception for all the blocks?

In the case of reducing the exception, it is safe to deal with exceptions.Then should I make an exception by using all those blocks as a try-catch?Doesn't that make the code too messy?


1 answers
105 views
0
How to clean up null exception handling

Usually when you make a code, if (someobject != null) { someobject.doCalc(); }They're making exceptions in the same way, but they look so dirty to meIs there a way to make it cleaner?


1 answers
82 views
0
Is it possible to ignore exceptions in exception handling?

I just want to ignore some code and keep running if there's an exceptionIn this case, how should I try-except?See if I'm righttry : shutil.rmtree ( path )except : pass


1 answers
111 views
0
After upgrading Eclipse's Android sdk, I got a java.lang.ClassNotFoundException error.

I was developing a simple app with the 4.2.2 version. It worked fine on the device at that time. And stopped developing for almost a monthI recently saw Google I/O and decided to develop it again. And...


1 answers
93 views
0
I want to compare the arrays

You want to compare an array with multiple arraysFor example, A={1,1,1,1}, B={{0,0,0,00},{1,1,1,1},{2,2,2,2},{3,3,3,3},...}, C={10,10,10},{20,20,20},...},D = {},...I want to compare A and B, compare A...

2 years ago

1 answers
87 views
0
I have a question during programming using Python exception.

Hello, I'm a student learning Python. I am writing a program that calculates the average by receiving a score from the user.If you add a positive number as user_input, you add it to the list, and if y...

2 years ago
« - 3 - »

© 2024 OneMinuteCode. All rights reserved.