• Register
0 votes
183 views

Problem:

I am finding code and not able to used right code so that I can get right output, can anyone tell the right code?
Rearrange the code so that it forms a correct program that prints out the letter q:?
 
7 5 3
5,380 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution:

You can try some of the approaches, yo can get solution to your query: 

 

public class Q
{
public static void main(String[] args) {
System.out.println(\"Q\");
}

}

or 

 


public class Q{
   public static void main(String[] a){
      System.out.println("Q");
   }
}

Hope you got right solution.

8 6 2
10,530 points

Related questions

0 votes
1 answer 183 views
183 views
Problems: I need help in programming to solve my issue. Is there anyone who can help me ? Write a complete main method that prints Hello, world to the screen?
asked Feb 13, 2020 maddi86 5.4k points
0 votes
1 answer 23 views
23 views
Problem: How do we write a program that prints a triangle, rectangle, square and a inverted triangle of stars on the screen using loops?
asked Feb 27 Code Learner 9.8k points
0 votes
1 answer 14 views
14 views
Problem: I will request someone to answer my question Please, I have searched on the web but I got no useful information for this, now I am in difficulty continuing my learning
asked Mar 24 sadi1982 36.3k points
0 votes
1 answer 3 views
3 views
Problem: I used Google to try to find a solution on the web of the above question, But I got no useful hints. Can I get Pointer information about my problem with this?
asked Mar 24 sadi1982 36.3k points
0 votes
1 answer 18 views
18 views
Problem: I am trying to write a program that calculates the average of scores in 5 subjects and prints the average and the lowest score of all. I tried the following program, but it is not given the correct average: #include<iostream> #include<conio.h> using namespace std; int ... "<<lowest; } It gives 0 as average no matter what values I input. Please guide me about what I am doing wrong. Thanks!
asked Feb 27 Code Learner 9.8k points
0 votes
1 answer 44 views
44 views
Problem: Hello! I need to write a program that takes string input from the user and removes all the spaces from the string. Following is my attempt. It is not giving the desired output: #include <iostream> #include <string.h> using namespace std; int main() { ... following output: Enter a sentence:This is My Program This I do not understand why this is not printing the whole sentence. Any help?
asked Feb 27 Code Learner 9.8k points
0 votes
1 answer 372 views
372 views
Problem: I am new and learning, I need help, can anyone help by filling in the blanks? The ability for a protocol or program to determine that something went wrong is known as ________?
asked Feb 21, 2020 maddi86 5.4k points
0 votes
1 answer 6 views
6 views
Problem: I'm having trouble processing this error: It is required that the operation be exported or include an intent-filter &ldquo;Count total number of times each alphabet appears in the string java program code with example&rdquo;?
asked Mar 29 tuhin1 48.9k points