<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Java - Q&amp;A				            </title>
            <link>https://tutorials7.com/es/qa/java/</link>
            <description>Tutorials7.com Mini Foro</description>
            <language>es</language>
            <lastbuilddate>Thu, 05 Mar 2026 18:08:07 +0000</lastbuilddate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>Agenda - Tarea Java (Mapas)</title>
                        <link>https://tutorials7.com/es/qa/java/phonebook-java-task-maps/</link>
                        <pubdate>Wed, 06 Nov 2024 07:48:10 +0000</pubdate>
                        <description><![CDATA[Write a program that receives some info from the console about people and their phone numbers.
You are free to choose the manner in which the data is entered; each entry should have just on...]]></description>
                        <content:encoded><![CDATA[<div class="entry-content">
<p><span>Write a program that receives some info from the console about <strong>people</strong> and their <strong>phone numbers</strong>.</span></p>
<p><span>You are free to choose the manner in which the data is entered; each <strong>entry</strong> should have just <strong>one name</strong> and <strong>one number</strong> (both of them strings). If you receive a name that <strong>already exists</strong> in the phonebook, simply update its number.</span></p>
<p><span>After filling this simple phonebook, upon receiving the <strong>command</strong> "<strong>search</strong>", your program should be able to perform a search of a contact by name and print her details in format "<strong>{name} -&gt; {number}</strong>". In case the contact isn't found, print "<strong>Contact {name} does not exist.</strong>" Examples:</span></p>
<p><span><strong>Examples:</strong></span></p>
<p><span><strong><img src="https://forum.tutorials7.com/images/Phonebook-Maps-Java-Task.jpg" alt="Phonebook Maps - Java Task" /></strong></span></p>
</div>]]></content:encoded>
						                            <category domain="https://tutorials7.com/es/qa/java/">Java</category>                        <dc:creator>paulcabalit</dc:creator>
                        <guid ispermalink="true">https://tutorials7.com/es/qa/java/phonebook-java-task-maps/</guid>
                    </item>
				                    <item>
                        <title>Operaciones básicas de colas - Tarea Java (Colas)</title>
                        <link>https://tutorials7.com/es/qa/java/basic-queue-operations-java-task-queues/</link>
                        <pubdate>Wed, 06 Nov 2024 07:45:38 +0000</pubdate>
                        <description><![CDATA[Play around with a queue.
You will be given:

An integer N representing the amount of elements to enqueue (add)
An integer S representing the amount of elements to dequeue (remove/poll) ...]]></description>
                        <content:encoded><![CDATA[<p><span><strong>Play around with a queue.</strong></span></p>
<p><span><strong>You will be given:</strong></span></p>
<ul>
<li><span>An integer <strong>N </strong>representing the amount of elements to enqueue (add)</span></li>
<li><span>An integer <strong>S </strong>representing the amount of elements to dequeue (remove/poll) from the queue</span></li>
<li><span>An integer <strong>X</strong>, an element that you should check whether is present in the queue.</span></li>
</ul>
<p><span>If it is print <strong>true </strong>on the console, if it’s not print the smallest element currently present in the queue. If the stack is empty print 0.</span></p>
<p><span>Examples:</span></p>
41
<p><span><strong>For the 1st task (with 5 2 32...) comment</strong>: We have to <strong>push 5 </strong>elements. Then we <strong>pop 2 </strong>of them. Finally, we have to check whether <strong>32</strong> is present in the stack. Since it is we print <strong>true</strong>.</span></p>]]></content:encoded>
						                            <category domain="https://tutorials7.com/es/qa/java/">Java</category>                        <dc:creator>andrew</dc:creator>
                        <guid ispermalink="true">https://tutorials7.com/es/qa/java/basic-queue-operations-java-task-queues/</guid>
                    </item>
				                    <item>
                        <title>Invertir números con una pila - Java Tarea (Pilas)</title>
                        <link>https://tutorials7.com/es/qa/java/reverse-numbers-with-a-stack-java-task-stacks/</link>
                        <pubdate>Wed, 06 Nov 2024 07:42:40 +0000</pubdate>
                        <description><![CDATA[Write a program that reads N integers from the console and reverses them using a stack.
Use the Stack&lt;Integer&gt; class. Just put the input numbers in the stack and pop them.
Examples:]]></description>
                        <content:encoded><![CDATA[<p>Write a program that reads <strong>N integers</strong> from the console and <strong>reverses them using a stack</strong>.</p>
<p>Use the Stack&lt;Integer&gt; class. Just put the input numbers in the stack and pop them.</p>
<p><strong>Examples</strong>:</p>
40]]></content:encoded>
						                            <category domain="https://tutorials7.com/es/qa/java/">Java</category>                        <dc:creator>hues</dc:creator>
                        <guid ispermalink="true">https://tutorials7.com/es/qa/java/reverse-numbers-with-a-stack-java-task-stacks/</guid>
                    </item>
				                    <item>
                        <title>Elemento máximo - Java Tarea (Pilas)</title>
                        <link>https://tutorials7.com/es/qa/java/maximum-element-java-task-stacks/</link>
                        <pubdate>Wed, 06 Nov 2024 07:40:29 +0000</pubdate>
                        <description><![CDATA[You have an empty sequence, and you will be given N queries. Each query is one of these three types:

1 x - Push the element x into the stack.
2    - Delete the element present at the top...]]></description>
                        <content:encoded><![CDATA[<p>You have an empty sequence, and you will be given N queries. Each query is one of these three types:</p>
<ul>
<li>1 x - Push the element x into the stack.</li>
<li>2    - Delete the element present at the top of the stack.</li>
<li>3    - Print the maximum element in the stack.</li>
</ul>
<p><strong>Input Format: </strong>The first line of input contains an integer, N. The next N lines each contain an above mentioned query. <em>(It is guaranteed that each query is valid.)</em></p>
<p><strong>Output Format: </strong>For each type 3 query, print the maximum element in the stack on a new line.</p>
<p><strong>Constraints</strong>:<br />1 ≤ N ≤ 10<sup>5</sup> <br />1 ≤ x ≤ 10<sup>9</sup><br />1 ≤ type ≤ 3</p>
<p><strong>Here is an examples:</strong></p>
39]]></content:encoded>
						                            <category domain="https://tutorials7.com/es/qa/java/">Java</category>                        <dc:creator>sam</dc:creator>
                        <guid ispermalink="true">https://tutorials7.com/es/qa/java/maximum-element-java-task-stacks/</guid>
                    </item>
				                    <item>
                        <title>¿Cómo crear un mapa en Java?</title>
                        <link>https://tutorials7.com/es/qa/java/how-to-create-a-map-in-java/</link>
                        <pubdate>Wed, 06 Nov 2024 07:38:13 +0000</pubdate>
                        <description><![CDATA[How can I make a Map in Java (with Keys and Values)?
Can you please give me some examples of Map&#039;s usage in Java?
Thank you!]]></description>
                        <content:encoded><![CDATA[<p><span>How can I make a Map in Java (with Keys and Values)?</span></p>
<p><span>Can you please give me some examples of Map's usage in Java?</span></p>
<p><span>Thank you!</span></p>]]></content:encoded>
						                            <category domain="https://tutorials7.com/es/qa/java/">Java</category>                        <dc:creator>ak47seo</dc:creator>
                        <guid ispermalink="true">https://tutorials7.com/es/qa/java/how-to-create-a-map-in-java/</guid>
                    </item>
				                    <item>
                        <title>How to build calculator in Java with methods?</title>
                        <link>https://tutorials7.com/es/qa/java/how-to-build-calculator-in-java-with-methods/</link>
                        <pubdate>Wed, 06 Nov 2024 07:36:29 +0000</pubdate>
                        <description><![CDATA[Help me create calculator application in Java by using methods.
Thanks, John]]></description>
                        <content:encoded><![CDATA[<p><span>Help me create calculator application in Java by using methods.</span></p>
<p><span>Thanks, John</span></p>]]></content:encoded>
						                            <category domain="https://tutorials7.com/es/qa/java/">Java</category>                        <dc:creator>john7</dc:creator>
                        <guid ispermalink="true">https://tutorials7.com/es/qa/java/how-to-build-calculator-in-java-with-methods/</guid>
                    </item>
				                    <item>
                        <title>Reverse loop from bigger to smaller in Java</title>
                        <link>https://tutorials7.com/es/qa/java/reverse-loop-from-bigger-to-smaller-in-java/</link>
                        <pubdate>Wed, 06 Nov 2024 07:33:06 +0000</pubdate>
                        <description><![CDATA[How can I do a reverse loop - meaning going from bigger to smaller (for example integer) in Java?
For example I have 12 months and instead of getting this in the console:

January
Februa...]]></description>
                        <content:encoded><![CDATA[<p>How can I do a reverse loop - meaning going from bigger to smaller (for example integer) in Java?</p>
<p>For example I have 12 months and instead of getting this in the console:</p>
<ul>
<li>January</li>
<li>February</li>
<li>March</li>
<li>April</li>
<li>May</li>
<li>June</li>
<li>July</li>
<li>August</li>
<li>September</li>
<li>October</li>
<li>November</li>
<li>December</li>
</ul>
<p><strong>I want to get this</strong>:</p>
<ul>
<li>December</li>
<li>November</li>
<li>October</li>
<li>September</li>
<li>August</li>
<li>July</li>
<li>June</li>
<li>May</li>
<li>April</li>
<li>March</li>
<li>February</li>
<li>January</li>
</ul>
<p>....in reverse order!</p>
<p><span>Here is my code</span>:</p>
<pre contenteditable="false">public class MonthsNumber {
 
    public static void main(String[] args) {
 
        String[] monthsNumber = {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"};
 
        for (int i = 0; i &lt; months.length; i++) {
            System.out.println(months);
        }
    }
}</pre>]]></content:encoded>
						                            <category domain="https://tutorials7.com/es/qa/java/">Java</category>                        <dc:creator>eiorgert</dc:creator>
                        <guid ispermalink="true">https://tutorials7.com/es/qa/java/reverse-loop-from-bigger-to-smaller-in-java/</guid>
                    </item>
				                    <item>
                        <title>Shortcuts and live templates in IntelliJ IDEA</title>
                        <link>https://tutorials7.com/es/qa/java/shortcuts-and-live-templates-in-intellij-idea/</link>
                        <pubdate>Wed, 06 Nov 2024 07:27:56 +0000</pubdate>
                        <description><![CDATA[What kind of shortcuts and live templates do you use in IntelliJ Idea:
Can you please share some - so I can work faster :-) Thanks]]></description>
                        <content:encoded><![CDATA[<div class="entry-content">
<p><span>What kind of shortcuts and live templates do you use in IntelliJ Idea: <a href="https://www.jetbrains.com/idea/" target="_blank" rel="nofollow noopener">https://www.jetbrains.com/idea/</a>? </span></p>
<p><span>Can you please share some - so I can work faster :-) Thanks</span></p>
</div>]]></content:encoded>
						                            <category domain="https://tutorials7.com/es/qa/java/">Java</category>                        <dc:creator>mitko</dc:creator>
                        <guid ispermalink="true">https://tutorials7.com/es/qa/java/shortcuts-and-live-templates-in-intellij-idea/</guid>
                    </item>
				                    <item>
                        <title>How to print an ArrayList without the square brackets  in Java?</title>
                        <link>https://tutorials7.com/es/qa/java/how-to-print-an-arraylist-without-the-square-brackets-and-in-java/</link>
                        <pubdate>Wed, 06 Nov 2024 07:25:59 +0000</pubdate>
                        <description><![CDATA[I need to print in Java an ArrayList - but without the square brackets  - how can I do it? The output MUST be without the square brackets ;
For example I have this code:
ArrayList&amp;lt...]]></description>
                        <content:encoded><![CDATA[<p>I need to print in Java an ArrayList - but without the square brackets <strong></strong> - how can I do it? The output MUST be without the square brackets <strong>;</strong></p>
<p><strong>For example I have this code:</strong></p>
<pre contenteditable="false">ArrayList&lt;Integer&gt; n = new ArrayList&lt;&gt;();
n.add(4);
n.add(5);
n.add(434);
n.add((int) 9.5);
 
System.out.println(n);</pre>
<p>The output in this case is: <strong></strong></p>
<p><em>But I want to print it without the brackets - <span>only the numbers</span>: 4, 5, 434, 9</em></p>]]></content:encoded>
						                            <category domain="https://tutorials7.com/es/qa/java/">Java</category>                        <dc:creator>nikole</dc:creator>
                        <guid ispermalink="true">https://tutorials7.com/es/qa/java/how-to-print-an-arraylist-without-the-square-brackets-and-in-java/</guid>
                    </item>
				                    <item>
                        <title>How to use regex in Java?</title>
                        <link>https://tutorials7.com/es/qa/java/how-to-use-regex-in-java/</link>
                        <pubdate>Wed, 06 Nov 2024 07:21:07 +0000</pubdate>
                        <description><![CDATA[What is regex and how can I use it in Java (and IntelliJ Idea)?
Are there site which explains regex&#039;s use? 
Can you please share? 

Thanks, Jolie]]></description>
                        <content:encoded><![CDATA[<div class="entry-content">
<ul>
<li><span>What is regex and how can I use it in Java (and IntelliJ Idea)?</span></li>
<li><span>Are there site which explains regex's use? </span></li>
<li><span>Can you please share? </span></li>
</ul>
<p><span>Thanks, Jolie</span></p>
</div>]]></content:encoded>
						                            <category domain="https://tutorials7.com/es/qa/java/">Java</category>                        <dc:creator>jolieann</dc:creator>
                        <guid ispermalink="true">https://tutorials7.com/es/qa/java/how-to-use-regex-in-java/</guid>
                    </item>
							        </channel>
        </rss>