32,199 Topics

Member Avatar for
Member Avatar for MagnusTheRed90

I have a class which is sort of like a repository, and every time I write to the zip archive using this command, the prior activity is overwritten. /// <summary> /// Insert file into existing archive file. /// </summary> /// <param name="fullPath"></param> /// <param name="stream"></param> public void InsertIntoFile(String fullPath, Stream …

Member Avatar for MagnusTheRed90
0
96
Member Avatar for Nirmen

How can I solve this ? implement java program, green land zoo park has four types of animals, elephants that drink water, monkeys that eat bananas, flamingo that fly, and lions that eat meat, using your understanding of inheritance

Member Avatar for rproffitt
0
131
Member Avatar for polpo

Hi, how i can do translator a word offline to frensh in english in java i find Moses,stanford phrasal .. but i can't find a simple example for understand i need help please and thanks

Member Avatar for rproffitt
0
30
Member Avatar for samuella11

The solution of the problem includes modeling and realization of the process of issuing cash receipts in a store. It is necessary to create classes that store and manipulate information about: store; cashier in a store; goods in a store; cash register in a store; a receipt that is issued …

Member Avatar for rproffitt
1
37
Member Avatar for Flashints
Member Avatar for Shana_2

I'm new to Android Studio and Java and I'm trying to display a dynamic battery percentage on multiple activities, but it is only showing on the main screen. I am also trying to do the same thing with displaying time. I am trying to get it work with my second …

Member Avatar for rproffitt
0
181
Member Avatar for Giselle_1

I've created a method that requests input for a grading and would like 0 to be a valid input result. But my code doesn't allow it? Can anyone help? public int getValidModuleMark3 () { Scanner input = new Scanner(System.in); int mark; System.out.println ("Enter number of compensentable failed credits in range …

Member Avatar for tinstaafl
0
110
Member Avatar for mr.matrix251
Member Avatar for rproffitt
0
121
Member Avatar for Giselle_1

I need with with a section of my assignment where it asks to take four first attempt module results (i.e. all module average, ISM module average, number of compensentable failed credits and number of outright failed modules) as parameters and returns the degree classification (e.g. “distinction”, “merit”, “pass” or “fail”). …

Member Avatar for tinstaafl
0
336
Member Avatar for Demetrius

[COLOR=Indigo]Hey I'm pretty new to C++. I'm taking a class on it now but I don't know how to make sounds in C++... I've done QBasic so I have a little programming background. I'm right now thinking of what to do for a program, and it largely depends on if …

Member Avatar for k191376
0
15K
Member Avatar for Chua_1

I am trying to get the text entered from jtf3 and jtf4 to show in the Message Dialog str1 and str2. Error states that the symbol fot str1 and str2 cannot be found. Please advice. class ChuaWeiheng extends JFrame { private final JLabel jl, jl1, jl2, jl3, jlimage; private final …

Member Avatar for JamesCherrill
0
112
Member Avatar for Lev_3

Hello people! :) I'm quite new in the programming world. I'm really interested in programming from the time I found that there's coming a game called Hytale, and **I would love to be able to make mods for it**. So basically I have a book that should introduce me to …

Member Avatar for hussainmujtaba
0
920
Member Avatar for Violet_82

Hi guys, I was trying to test a method which takes a user input, does something and then returns that input but I'm having some issues with it. I've attempted a few solutions, mostly described in SE, I will leaave them out of this post and discuss instead the one …

Member Avatar for Violet_82
0
3K
Member Avatar for Nur_13

hai i need help,my lect ask to do assignment and the question are do insert,delete,edit and print output for queue and stack.everthing is okay until i got stuck how to do edit in queue and stack......someone please help me.thanks in advance

Member Avatar for JamesCherrill
0
87
Member Avatar for Laluna

Hi all, I am Luna. I am pretty new here so please be patient with me. I go to a lot of concerts, but my favorite singer is Travis Scott. I'm currently studying to be a Merchandise manager which is what I've always wanted to do. I think the one …

Member Avatar for Reverend Jim
0
143
Member Avatar for Janezz

As one of the most powerful tools in Excel, PivotTable has the ability to calculate, summarize, and analyze data, which allows us to see the comparisons and trends of our data more intuitively. In addition, PivotTable also has the ability to sort and filter data, and it can meet our …

0
413
Member Avatar for Usoop
Member Avatar for may5457

I keep getting CircleInformation.java:13: error: cannot find symbol float circumference = 2 * (PI * radiusF) ^![Screen_Shot_2020-04-20_at_2_19_38_PM.png](/attachments/large/4/dc19daf5031100026891115972a1d2a2.png)

Member Avatar for JamesCherrill
0
705
Member Avatar for Andrew_62

When i run my code i get this error: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: How do I fix this? this is my code so far: import java.awt.Font; import javax.swing.*; public class Program7 public static void showOutput(String output) { JTextArea jta = new JTextArea(output); jta.setFont(new Font("Consolas", Font.PLAIN, 60)); JOptionPane.showMessageDialog(null, jta); } …

Member Avatar for Dani
0
440
Member Avatar for Hisham_3

Hi, I want someone to explain this code ( method ), and how it works.؟؟ Especially the process of moving the elevator // The elevator class draws the elevator area and simulates elevator movement class Elevator extends JPanel implements ActionListener { // Declaration of variables private Elevator_Simulation app; // Elevator …

Member Avatar for Hisham_3
0
263
Member Avatar for Chua_1

I am trying to sort my array to print it out according to the suits e.g. S10, S6, H11, C4, D10 etc. I have tried adding Arrays.sort but it doesnt work. Please advice. private void transfer2D(String[][] twoD, String[] strArray) { int i = 0; for( int suit = 0; suit …

Member Avatar for JamesCherrill
0
114
Member Avatar for Chua_1

I am trying to get my private void transfer method and pass it into a 2D array transfer2D method, after which I am able to print it out using the print2D_1 method. I am also trying to sort the array from the highest suit to the lowest suit followed by …

Member Avatar for JamesCherrill
0
203
Member Avatar for ButcherHix
Member Avatar for Hisham_3

Hello everyone, I have some problems with my program , hope you can help me to solve it. 1- I need a method for the** Clear Time** button that remove the counter to be 0. ` private void btclearActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: min=0;sec=0; lblsec.remove(lblsec); …

Member Avatar for Hisham_3
0
804
Member Avatar for Binisha

i am stuck at aparticular place and cant help myself. my professor asked me to built a notepad using .io and .awt pakages only and i am unable to do the save function in the notepad can anyone please help me

Member Avatar for tinstaafl
0
88
Member Avatar for tinstaafl

There are times when you need to make sure your counter starts at an odd or even number. Even is pretty simple - `counter = counter + modulus(counter)`. If counter is even it stays, if it's odd it gets incremented by 1. Odd is a bit more complicated - `counter …

Member Avatar for holisticgroup19
3
4K
Member Avatar for Uğur Kaan

where theuser tries to guess a 3 digit target number Whenthe user guesses a number, the computer • Prints k `+' if the guessed number has k same digits as the target number and also in their correct positions.

Member Avatar for rproffitt
0
123
Member Avatar for student_6
Member Avatar for Max_26

I have the following Java code snippet: Map<String, List<String>> phones = new HashMap<>(); phones.put("User1", Arrays.asList("0502324547", "0651634767")); phones.put("User2", Arrays.asList("0977634321", "0697654221")); phones.put("User3", Collections.singletonList("0970011223")); Map<String, String> map = phones .entrySet() .stream() .flatMap(e -> e.getValue().stream().map(v -> new AbstractMap.SimpleEntry<>(v, e.getKey()))) .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue)); Using it I'm converting Map<String, List <String>> to Map<String, String> and then passing …

0
211
Member Avatar for Henry Williams

My name is Henry, and I started programming about 10 years ago. I always loved playing video games, even from a young age. That passion eventually turned into something much more. Learning programming languages is very popular at the moment. A lot of people leave their current workplaces to learn …

Member Avatar for JamesCherrill
0
301

The End.