Q&A Discussions
getting error when try to use this code
System.out.printf("my name is %s","Roy");
it's showing like: exception in thread"main" Java.lang.Error: unresolved compilation problem:
the method printf(String,Object[ ]) in the type printstream is not applicable for the arguments (String,int)at tutorial 19.App.main(App.java:11)
0 Votes
3 AnswersQuestions about Arrays: Java
0 Votes
1 AnswerLearn Swift
2 Votes
2 AnswersGregorianCalendar
0 Votes
1 AnswerCan anyone help me to code this
Write a method 'timesTable()' which accepts an integer value num from the keyboard and uses it to print 'times table' of itself in a structured format. Your output must include a header row. For example, if the user enters 5, your program's output should be:
5 Times Table
1 5 5
2 5 10
3 5 15
4 5 20
5 5 25
6 5 30
0 Votes
5 Answers
so although using srand(time(0)) can be used to get truly random numbers, how truly random are they? For example, if one were to call this method at the same time (in this example, if one were to use this command at 51s) each time would the numbers generated be the same???
If so, are the numbers still truly random??
And if this theory is true, how can one generate truly random numbers that cannot repeat based on external variables (e.g., time)?
2 Votes
4 AnswersI have a project in school and i want to add some login functions. know im planning to make an external js and there i will get the input of the user.In the login button i will put there the username input but how do i cancel the funtion if the users input is null and where should i put these method
THANKS FOR THE FUTURE HELP :)
0 Votes
2 AnswersHot today
Help please?
4 Votes
Ejercicio Pytho
0 Votes
Online voting system
2 Votes
What is that z for
0 Votes
Suggestions needed
4 Votes
Game development
0 Votes