method tag

20 questions


1 answers
136 views
0
Please teach me how to hide my Android virtual keyboard ㅠㅜ

There are EditText and buttons in the layout that I made I want to hide my virtual keyboard when I write Edit Field and click the button What do I do?


1 answers
97 views
0
Static class member in Python

Can I create a static member variable or function in the Python class? What grammar should I use?


1 answers
113 views
0
(Python) To find a mistake in a text file

fname = input('Enter the file name: ')try : fname = open(fname)except : print('Wrong file name') exit()for line in fname : line = line.rstrip() if line.startswith('X-DSPAM-Confidence: 0.8475') : prin...

2 years ago

1 answers
93 views
0
I have a question about the Java public method

class Deck {final int CARD_NUM = 52; // Number of cardsCardcardArr[] = newCard[CARD_NUM]; // Include an array of Card objectsDeck () { // Initialize Deck's card. int i=0; for(int k=Card.KIND_MAX; k &g...

2 years ago

2 answers
104 views
0
I want to use Python instance as a variable in the method.

If you answer my question, I will never forget this kindness.My question is, to sum up,I want to use the instance as a variable in the method.For example, class Marine: def __init__(self): self.healt...


1 answers
81 views
0
Java method problem.

class Adder{ int value; int var1; public Adder(int x){ this.var1 = x; } public int add(){ value += var1; return getValue(); } public int getValue(){ return value; }}class Solution { public int sol...

2 years ago

2 answers
76 views
0
Can I write the return method independently in main?

When calling a method that returns a specific value or a specific object in the main function, Don't you usually substitute that method for a variable or object of that type?I wonder how you can use i...

2 years ago

1 answers
110 views
0
Java Seng Basic Question (Method, make a triangle with a for statement) (Please help me...)

import java.util.Scanner;class Recursion{ //method public void star(int x){ if(x>0){ printBlank(x); printStar(x); System.out.print(\n); star(x-1); } else return; } public void printBlank(...

2 years ago

1 answers
143 views
0
Python list method index question, find the last element in the list.

The language is Python.I have a question about using index method, which is one of Python's methods.For example,When a_list=[1,2,3,1,4],If you use the index method, you will first put 0 which is the i...

2 years ago

1 answers
102 views
0
Python Dictionary Clear Method

fruits_dic={'apple':6000,'melon':3000,'banana':5000,'orange':7000}fruits_dic.clear()print(fruits_dic)Result value{}-------------------------------------------------fruits_dic={'apple':6000,'melon':300...

2 years ago
« - 2 -

© 2024 OneMinuteCode. All rights reserved.