or tag

453 questions


1 answers
100 views
0
SyntaxError: check why invalid syntax appears

After you push the computer once and install Python,I just used print, but there's an errorWhat should I do? Should I reformat my computer?>>> print hello World File <stdin>, line 1 pri...

2 years ago

1 answers
66 views
0
What does the ^ operator do in Java?

What is the work of a operator in Java?For example, if you do an operation such as inta=5^n;Operator does When n is 5, the value is 0When n is 4, the value is 1When n is 3, the value is 3I don't think...


1 answers
98 views
0
NameError: name 'raw_input' is not defined

It worked well at school, but it doesn't work when I get home.It says raw_input is undefined, what's wrong?import sysprint (sys.platform)print (2 ** 100)raw_input()Traceback (most recent call last): F...

2 years ago

1 answers
108 views
0
How to change the color integer value to hex String on Android

An integer value was generated in android.graphics.Color. The integer value is -16776961.I'd like to change this value to #RRGGBB format for hexString. How shall I do it?For example, I want to change ...

2 years ago

1 answers
126 views
0
What are the two colons in Ruby doing?

What does :: do in Foo::Bar?I thought it was related to encapsulation (private, protected), but it's not that when I looked at the definition.The :: is a unary operator that allows: constants, instanc...

2 years ago

1 answers
129 views
0
About setting up Vector classes in java

The exercise problem is to create a program that receives information from people, stores it in data, and watches it anytime Vector vc = new Vector(); if (file.exists()){ ObjectInputStream ois = new ...

2 years ago

1 answers
54 views
0
How to use forever-monitor in node

From node I made monitor.js after seeing forever-monitor on github /* monitor.js */var forever = require('forever-monitor');var time = require('./time');var maxRestart = 20;var now = time.getFormStrin...

2 years ago

1 answers
173 views
0
When is a virtual constructor used?

When is the virtual constructor used for C++?Virtual constructors seem to be a really useless feature, but I don't know when. Isn't superclass constructor called automatically when inherited? Why both...

2 years ago

1 answers
149 views
0
Can you sort ArrayList with a specific method of objects?

I understand that you can arrange the ArrayLists with a comparator. But if you look at all the examples that use compareTo, it seems to be a method for strings.I want to sort the ArrayList with a spec...


1 answers
173 views
0
The name of the module that should be installed when using mariaDB in node.js? And the error content and solution when installing?

We are developing a web app with node.js. I'm going to study and start a startup.I was using mysql and found several issues about it and I'm switching to mariaDB.But... There's traffic from the first ...

« - 13 - »

© 2024 OneMinuteCode. All rights reserved.