Soluții

How to create a file using Java

To create a file in Java, you can use the createNewFile() method. This method returns a boolean value: true if the file was successfully created, and false if the file already exists. Note that the method is enclosed in a try…catch block. This is necessary because it throws an IOException if an error occurs (if the file cannot be created for some reason):

[mai mult...]

How to Uninstall an Application on Windows 10

If you’re running Windows 10 and you don’t need an application anymore, you might want to uninstall it. There are several ways to do it, depending on what type of app it is. Here’s how to uninstall a program in Windows.

Uninstall an Application Using the Start Menu

If an application has been installed using the Microsoft Store, you can uninstall it quickly via the Start menu. To do so, open the “Start” menu and locate the application’s icon, then right-click it. In the menu that pops up, select “Uninstall.”

In the Windows 10 Start menu, right-click the app and select "Uninstall."

If it’s the first time you’ve uninstalled a program this way, it will warn you with a small pop-up dialog. Click “Uninstall” again. The app will be uninstalled silently with no further action necessary from you. If you change your mind, you can download and install it again later through the Microsoft Store. If you right-click an app that wasn’t installed via the Microsoft Store and select “Uninstall,” the “Programs and Features” window will open. Locate the program in the list, select it, then click the “Uninstall” button.

In Programs and Features, select the app you want to uninstall and click "Uninstall."

If an uninstall wizard window appears, follow the steps until the program is uninstalled. Then you’re free to close the “Programs and Features” window.

Uninstall an Application Using Settings

Perhaps the most comprehensive way to uninstall an application on Windows 10 is by using Settings. That’s because you can see a list of every installed program on the system and easily select which one you’d like to uninstall. To do so, open “Settings” by clicking the “Start” menu and selecting the gear icon. (Or you can press Windows+I on your keyboard.)

In the Windows 10 Start Menu, click the "gear" icon to open Settings.

In “Settings,” click “Apps.”

In Windows Settings, select "Apps."

After that, you’ll see a list of all apps installed on your system. This includes both apps installed through the Microsoft Store and those installed through other methods. Locate the entry for the program you’d like to uninstall and select it. Then click “Uninstall.”

In "Apps & Features," select the app you'd like to uninstall, then click "Uninstall."

If the app was installed from the Microsoft Store, it will uninstall instantly without any extra steps. If it’s an app installed through other means, you might see an additional pop-up dialog. If so, click “Uninstall” again. After that, the program’s uninstall wizard window will launch. Follow the wizard’s steps, and the app will uninstall completely.

Uninstall an Application Using Control Panel

You can also uninstall non-Microsoft Store applications using the legacy Windows Control Panel. To do so, open the “Start” menu and type “control,” then click the “Control Panel” icon.

Open Start menu, type "control," then select the "Control Panel" icon.

Under “Programs,” click “Uninstall a program.”

In Windows Control Panel, click "Uninstall a program."

In the Programs and Features window that appears, you’ll see a long list of installed applications that you can sort by name, publisher, install date, size, and version number by clicking on the column headings. This list does not include apps installed from the Microsoft Store. To uninstall those, use the “Settings” window or right-click them and select “Uninstall” in the “Start” menu.

A list of installed programs in Windows Control Panel.

Locate the program you’d like to uninstall and click the entry to select it. Then click the “Uninstall” button.

In Programs and Features, select the app you want to uninstall and click "Uninstall."

An uninstall wizard for the program will launch. Click through the steps until you finish the uninstall process. Since Microsoft considers Control Panel a legacy interface, it’s a good idea to also practice uninstalling programs using the other methods above.

[mai mult...]

How to Calculate the Sum of Cells in Excel

Microsoft Excel may be known for complex calculations and formulas, but it’s no slouch at simple arithmetic. There are a number of ways to find solutions to simple math problems, like finding the sum of numbers in multiple cells.

Finding the Sum of Numbers in Adjacent Columns or Cells

The quickest way to calculate the sum of squares in Excel is to simply highlight the list of numbers, and check the bottom right of the screen. Here, you’ll find the sum of any selected cell as well as their average and the number of cells you’re adding.

sum at bottom of excel

But, we’ll assume you want to add the sum to the workbook itself. In that case, highlight the numbers you want to add.

highlight cells

From the “Formulas” tab, click “Autosum” to find the sum of the list of numbers. Once you click, Excel will automatically add the sum to the bottom of this list.

formulas autosum

Alternatively, you can type the formula =SUM(D1:D7) in the formula bar and then press “Enter” on the keyboard or click the checkmark in the formula bar to execute the formula. Change the letters and numbers in parenthesis to fit your workbook.

sum formula

Finding the Sum of Numbers in Non-Adjacent Columns or Cells

Click any empty cell in the workbook. This should be the cell where you want to display the sum of these non-adjacent columns.

empty cell

From the “Formulas” tab, click the arrow icon at the right of “Autosum.”

formulas autosum

Choose “Sum.”

autosum and sum

Click the first number in the series.

first cell in column

Hold the “Shift” button and then click the last number in that column to select all of the numbers in between.

shift and click to select

To add the second column of numbers, hold Ctrl and scroll down from the first to the last number in the column. Alternatively, you can add the formula =SUM(D1:D7,F1:F7) to the formula bar. Swap the cells inside the parenthesis to fit your needs.

ctrl and click to select

Press the “Enter” button on the keyboard, or the checkmark in the formula bar to execute the formula.

2 column sum formula

[mai mult...]

How to Change Your Team Logo in Microsoft Teams

Microsoft Teams Logo

Creating and joining a team in Microsoft Teams is easy. Visually identifying a team from a long list of teams, on the other hand, can be more difficult. Give your teams a visual identity by adding a unique logo to each one. It’s quite normal to have a list of teams in Microsoft Teams, each of which is represented by an icon with the initials of the team name in it.

A list of teams in Microsoft Teams.

The more teams you’re a member of, the more difficult it is to identify a team at a glance, especially if you’re a member of multiple teams that have the same initials. The best way to easily identify a team is to give it a unique logo. This image will show up in the list of teams and in the team itself.

Before we begin, know that you’ll need to be the owner of the team before you can change its icon. To change your team logo, open Microsoft Teams, click the three-dot menu button next to the team name, then select “Manage Team.”

The team menu with "Manage team" highlighted.

Navigate to the “Settings” tab, expand the “Team Picture” section, and click the “Change Picture” button.

The "Settings" tab with "Team picture" highlighted.

In the panel that opens, select the “Upload Picture” button.

The "Upload picture" option.

A file dialogue will appear for you to locate the image you want to use for your team. Select the photo you want, then click the “Save” button.

The "Save" button.

Close the panel. Your image will now be visible in the sidebar and in the team itself.

The new logo displayed in the team.

If you want to change the image again in the future, just repeat the process.

[mai mult...]